Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
[CI] Don't tag PRs on companion job cancels (#6470)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3krit authored Jun 22, 2020
1 parent 8329dbd commit 94b3812
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/polkadot-companion-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Monitor the status of the gitlab-check-companion-build job
uses: s3krit/await-status-action@4528ebbdf6e29bbec77c41caad1b2dec148ba894
uses: s3krit/await-status-action@v1.0.1
id: 'check-companion-status'
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
contexts: 'continuous-integration/gitlab-check-polkadot-companion-build'
timeout: 1800
notPresentTimeout: 3600 # It can take quite a while before the job starts...
failedStates: failure
interruptedStates: error # Error = job was probably cancelled. We don't want to label the PR in that case
- name: Label success
uses: andymckay/labeler@master
if: steps.check-companion-status.outputs.result == 'success'
Expand Down

0 comments on commit 94b3812

Please sign in to comment.