celestiaorg/celestia-app v2.0.0-rc4 Release Deployment Tracking #133
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: GitHub Actions 2 PagerDuty | |
on: | |
workflow_dispatch: | |
issues: | |
types: | |
- opened | |
- labeled | |
jobs: | |
check-label: | |
runs-on: ubuntu-latest | |
outputs: | |
issue-labeled: ${{ steps.set-output.outputs.issue-labeled }} | |
steps: | |
- name: Check if the issue has the 'incident' label | |
id: set-output | |
run: echo "::set-output name=issue-labeled::${{ contains(github.event.issue.labels.*.name, 'incident') }}" | |
ga-2-pd: | |
name: GitHub Actions To PagerDuty | |
needs: check-label | |
if: needs.check-label.outputs.issue-labeled == 'true' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send PagerDuty alert on failure | |
uses: award28/[email protected] | |
with: | |
pagerduty-integration-key: '${{ secrets.PAGERDUTY_INTEGRATION_KEY }}' | |
pagerduty-dedup-key: github_workflow_failed |