generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace prow build job waiting with github action
- Loading branch information
Showing
2 changed files
with
94 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Backend-switching-tests-gardener (reusable) | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
repository: | ||
description: Full name of repository (<owner>/<name>). | ||
required: true | ||
type: string | ||
git_ref: | ||
description: Git reference against which the check will be retrieved. Could be commit SHA, tag or branch name. | ||
required: true | ||
type: string | ||
git_check_run_name: | ||
description: Name of the Git check to wait for. | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
wait-for-build-job: | ||
name: Wait for build job | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout eventing-tools | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'kyma-project/eventing-tools' | ||
path: 'kyma-project/eventing-tools' | ||
ref: main | ||
sparse-checkout: 'scripts/wait-for-commit-check' | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
|
||
- name: Install requirements | ||
run: | | ||
pip install -r $GITHUB_WORKSPACE/kyma-project/eventing-tools/scripts/wait-for-commit-check/requirements.txt | ||
- name: Wait for build job | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPOSITORY_FULL_NAME: ${{ inputs.repository }} | ||
GIT_REF: "${{ inputs.git_ref }}" | ||
# The re-usable image-builder workflow from neighbors appends the "Build image" suffix to the check run name. | ||
GIT_CHECK_RUN_NAME: "${{ inputs.git_check_run_name }}" | ||
INTERVAL: 60 | ||
TIMEOUT: 900 | ||
run: | | ||
python $GITHUB_WORKSPACE/kyma-project/eventing-tools/scripts/wait-for-commit-check/run.py |