Skip to content

Commit

Permalink
Test push job with push event
Browse files Browse the repository at this point in the history
  • Loading branch information
muralov committed Jan 23, 2024
1 parent 96c20a6 commit 6cc348c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/push-e2e-upgrade-test.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: post-e2e-upgrade-test

on:
push:
pull_request:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
Expand All @@ -12,23 +12,24 @@ 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

- 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

0 comments on commit 6cc348c

Please sign in to comment.