Skip to content

Commit

Permalink
Rename reusable job and reconfigure push job
Browse files Browse the repository at this point in the history
  • Loading branch information
muralov committed Jan 24, 2024
1 parent 44d7775 commit 1b39691
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-e2e-upgrade-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
upgrade-test:
uses: ./.github/workflows/run-upgrade-tests-reusable.yaml
uses: ./.github/workflows/upgrade-tests-reusable.yaml
with:
pre-upgrade-image-tag: main
post-upgrade-image-tag: PR-${{ github.event.number }}
Expand Down
11 changes: 4 additions & 7 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:
pull_request:
push:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
Expand All @@ -16,21 +16,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
# checkout the current branch
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Get latest release tag
id: get-latest-release-tag
run: |
echo "latest_release_tag=$(curl -s https://api.github.com/repos/kyma-project/eventing-manager/releases/latest | jq -r '.tag_name')" >> "$GITHUB_OUTPUT"
upgrade-test:
uses: ./.github/workflows/run-upgrade-tests-reusable.yaml
uses: ./.github/workflows/upgrade-tests-reusable.yaml
needs: get-latest-release
with:
pre-upgrade-image-tag: ${{ needs.get-latest-release.outputs.latest_release_tag }}
post-upgrade-image-tag: main
build-job-name: pull-eventing-manager-build
build-job-commit-sha: ${{ github.event.pull_request.head.sha }}
build-job-name: push-eventing-manager-build
build-job-commit-sha: ${{ github.sha }}
secrets: inherit
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ on:
post-upgrade-image-tag:
required: true
type: string
pre-upgrade-branch:
type: string
default: ${{ inputs.pre-upgrade-image-tag }}
post-upgrade-branch:
type: string
default: ${{ inputs.post-upgrade-image-tag }}
build-job-name:
type: string
build-job-commit-sha:
Expand Down

0 comments on commit 1b39691

Please sign in to comment.