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

[CI] Label PRs if polkadot companion build fails #6410

Merged
7 commits merged into from
Jun 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/polkadot-companion-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check Polkadot Companion and Label

on:
pull_request:
types: [opened, synchronize]

jobs:
check_status:
runs-on: ubuntu-latest
steps:
- name: Monitor the status of the gitlab-check-companion-build job
uses: s3krit/await-status-action@4528ebbdf6e29bbec77c41caad1b2dec148ba894
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...
- name: Label success
uses: andymckay/labeler@master
if: steps.check-companion-status.outputs.result == 'success'
with:
remove-labels: 'A7-needspolkadotpr'
- name: Label failure
uses: andymckay/labeler@master
if: steps.check-companion-status.outputs.result == 'failure'
with:
add-labels: 'A7-needspolkadotpr'