Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mfaizanse committed Sep 18, 2024
1 parent e94eeb5 commit d17c94a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ jobs:
repository: ${{ github.repository_owner }}/eventing-manager
git_ref: ${{ needs.export-info.outputs.git-ref }}
git_check_run_name: "build / Build image"
secrets: inherit
secrets:
github_token: ${{ secrets.GITHUB_TOKEN }}

nats:
runs-on: ubuntu-latest
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/wait-build-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ on:
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:
required: true

jobs:
wait-for-build-job:
Expand Down Expand Up @@ -42,12 +55,11 @@ jobs:
- name: Wait for build job
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
INTERVAL: ${{ inputs.interval }}
TIMEOUT: ${{ inputs.timeout }}
run: |
python $GITHUB_WORKSPACE/kyma-project/eventing-tools/scripts/wait-for-commit-check/run.py

0 comments on commit d17c94a

Please sign in to comment.