diff --git a/.github/workflows/publish-community-operators-base.yml b/.github/workflows/publish-community-operators-base.yml index 059f9b3f2..f799ad37b 100644 --- a/.github/workflows/publish-community-operators-base.yml +++ b/.github/workflows/publish-community-operators-base.yml @@ -68,6 +68,10 @@ jobs: repository: Datadog/datadog-operator token: ${{secrets.GH_ROBOT_TOKEN}} path: tmp/ + run: | + if [[ "${{ !inputs.community_repo }}" ]]; then + make bundle-redhat + fi - name: update bundle if: ${{ inputs.community_repo }} @@ -78,10 +82,7 @@ jobs: - name: update redhat bundle if: ${{ !inputs.community_repo }} - working-directory: tmp/datadog-operator run: | - make bundle-redhat - cd ${{ inputs.repo }} mkdir operators/datadog-operator/$VERSION if [[ "${{ inputs.repo }}" == "redhat-marketplace-operators" ]]; then cp -R ./tmp/bundle-redhat-mp/* operators/datadog-operator/$VERSION