From 6cc348c40d8248cf8c3e2647d8c6d79f834374d3 Mon Sep 17 00:00:00 2001 From: Mansur Uralov Date: Tue, 23 Jan 2024 14:51:12 +0100 Subject: [PATCH] Test push job with push event --- .github/workflows/push-e2e-upgrade-test.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-e2e-upgrade-test.yaml b/.github/workflows/push-e2e-upgrade-test.yaml index 9104ae95..984e0922 100644 --- a/.github/workflows/push-e2e-upgrade-test.yaml +++ b/.github/workflows/push-e2e-upgrade-test.yaml @@ -1,7 +1,7 @@ name: post-e2e-upgrade-test on: - push: + pull_request: branches: [ "main" ] paths-ignore: - 'docs/**' @@ -12,7 +12,7 @@ jobs: get-latest-release: runs-on: ubuntu-latest outputs: - latest_release_tag: ${{ steps.get-latest-release-tag.outputs.latest_release_tag }} + latest_release_tag: "${{ steps.get-latest-release-tag.outputs.latest_release_tag }}" steps: - name: Checkout uses: actions/checkout@v2 @@ -20,15 +20,16 @@ jobs: - name: Get latest release tag id: get-latest-release-tag run: | - echo latest_release_tag=$(make -C hack/ci/ get-latest-release-tag) >> $GITHUB_OUTPUT + echo "latest_release_tag=$(make -C hack/ci/ get-latest-release-tag)" >> "$GITHUB_OUTPUT" upgrade-test: uses: ./.github/workflows/run-upgrade-tests-reusable.yaml + needs: get-latest-release with: pre-upgrade-image: europe-docker.pkg.dev/kyma-project/prod/eventing-manager:${{ needs.get-latest-release.outputs.latest_release_tag }} post-upgrade-image: europe-docker.pkg.dev/kyma-project/dev/eventing-manager:main pre-upgrade-branch: ${{ needs.get-latest-release.outputs.latest_release_tag }} post-upgrade-branch: main - build-job-name: push-eventing-manager-build - commit-sha: ${{ github.sha }} + build-job-name: pull-eventing-manager-build + commit-sha: ${{ github.event.pull_request.head.sha }} secrets: inherit