Skip to content

Notify Linear on Failure #2

Notify Linear on Failure

Notify Linear on Failure #2

name: Notify Linear on Failure
on:
workflow_run:
workflows:
- Test
types:
- completed
permissions:
contents: read
jobs:
notify-linear:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Notify Linear
env:
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}
LINEAR_TEAM_ID: ${{ secrets.LINEAR_TEAM_ID }}
LINEAR_TITLE_PREFIX: "[paper2ppt]"
LINEAR_LABEL_IDS: ${{ vars.LINEAR_LABEL_IDS }}
WORKFLOW_NAME: ${{ github.event.workflow_run.name }}
WORKFLOW_RUN_URL: ${{ github.event.workflow_run.html_url }}
WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }}
REPOSITORY: ${{ github.repository }}
BRANCH: ${{ github.event.workflow_run.head_branch }}
COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
EVENT_NAME: ${{ github.event.workflow_run.event }}
ACTOR: ${{ github.event.workflow_run.actor.login }}
run: python .github/scripts/notify_linear_failure.py