diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 509a7243..d29bb816 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -185,6 +185,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.BOT_PAT }} # creating git tag using bot token because GITHUB_TOKEN would not trigger build workflow (https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow). - name: Create changelog env: @@ -199,9 +200,11 @@ jobs: RELEASE_ID=$(./hack/ci/create_draft_release.sh $VERSION) echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT - - name: Trigger prow job 'release-eventing-manager-build' + - name: Add lightweight tag to trigger release build job + env: + GITHUB_TOKEN: ${{ secrets.BOT_PAT }} # creating git tag using bot token because GITHUB_TOKEN would not trigger build workflow (https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow). run: | - # The job release-eventing-manager-build will be triggered by pushing a new tag (format: x.y.z) to the repo. + # The build job will be triggered by pushing a new tag (format: x.y.z) to the repo. git tag $VERSION git push origin $VERSION diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 758ea622..13f0cc96 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -41,7 +41,7 @@ jobs: image-name: ${{ steps.extract-image.outputs.image_name }} git-ref: ${{ steps.extract-image.outputs.git_ref }} steps: - - name: Extract container image name from build logs (pull) + - name: export correct info based on event (PR or Push) id: extract-image env: GIT_EVENT_NAME: "${{ github.event_name }}" diff --git a/.github/workflows/pull-e2e-upgrade-test.yaml b/.github/workflows/pull-e2e-upgrade-test.yaml index 5aacfe1a..59ab746f 100644 --- a/.github/workflows/pull-e2e-upgrade-test.yaml +++ b/.github/workflows/pull-e2e-upgrade-test.yaml @@ -16,7 +16,6 @@ on: jobs: wait-until-build-succeeds: - needs: is-pr-approved uses: "kyma-project/eventing-tools/.github/workflows/wait-build-reusable.yml@main" with: repository: ${{ github.repository_owner }}/eventing-manager diff --git a/.github/workflows/push-e2e-upgrade-test.yaml b/.github/workflows/push-e2e-upgrade-test.yaml index d73682fc..70ca501b 100644 --- a/.github/workflows/push-e2e-upgrade-test.yaml +++ b/.github/workflows/push-e2e-upgrade-test.yaml @@ -29,7 +29,6 @@ jobs: echo "latest_release_tag=$(curl -s https://api.github.com/repos/kyma-project/eventing-manager/releases/latest | jq -r '.tag_name')" >> "$GITHUB_OUTPUT" wait-until-build-succeeds: - needs: export-info uses: "kyma-project/eventing-tools/.github/workflows/wait-build-reusable.yml@main" with: repository: ${{ github.repository_owner }}/eventing-manager