chore: replace prow build job waiting with github action #1
Workflow file for this run
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
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 | ||
interval: | ||
description: Interval (seconds) for polling the status. | ||
required: false | ||
default: 60 | ||
type: number | ||
timeout: | ||
description: Timeout (seconds) to wait for in total. | ||
required: false | ||
default: 600 | ||
type: number | ||
secrets: | ||
github_token: | ||
Check failure on line 29 in .github/workflows/wait-build-reusable.yml GitHub Actions / .github/workflows/wait-build-reusable.ymlInvalid workflow file
|
||
required: true | ||
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 }}" | ||
GIT_CHECK_RUN_NAME: "${{ inputs.git_check_run_name }}" | ||
INTERVAL: ${{ inputs.interval }} | ||
TIMEOUT: ${{ inputs.timeout }} | ||
run: | | ||
python $GITHUB_WORKSPACE/kyma-project/eventing-tools/scripts/wait-for-commit-check/run.py |