Skip to content

Commit

Permalink
Remove redundant 2nd attempt to wait for build
Browse files Browse the repository at this point in the history
The 2nd attempt to wait for build was originally added to
improve the CI reliability in case the 1st attempt failed, but
apparently the CI would not automatically resume even if the
2nd attempt was successful, and it's also generating warnings
about skipped checks, so it has been removed.
  • Loading branch information
edewata committed Oct 13, 2023
1 parent 8769b3a commit 67d904f
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/wait-for-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,36 +34,3 @@ jobs:

- name: Load PKI images
run: docker load --input pki-images.tar

waiting-for-build2:
name: Waiting For Build - 2nd attempt
runs-on: ubuntu-latest
needs: waiting-for-build
if: ${{ failure() }}
steps:
- name: Wait for build
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
check-name: 'Building PKI'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 60
if: github.event_name == 'push'

- name: Wait for build
uses: lewagon/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
check-name: 'Building PKI'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 60
if: github.event_name == 'pull_request'

- name: Retrieve PKI images
uses: actions/cache@v3
with:
key: pki-images-${{ github.sha }}
path: pki-images.tar

- name: Load PKI images
run: docker load --input pki-images.tar

0 comments on commit 67d904f

Please sign in to comment.