Skip to content

Commit

Permalink
Comment if parse failure
Browse files Browse the repository at this point in the history
  • Loading branch information
hvidy committed Feb 7, 2024
1 parent dd85368 commit 9e27012
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/edit-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,26 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 .github/scripts/write_report.py
# steps if failure
- name: workflow url
if: failure()
id: workflow-url
run: |
echo "workflow_url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT
- name: comment on failure
if: failure()
uses: GrantBirki/comment@v2.0.8
with:
issue-number: ${{ github.event.issue.number }}
file: .github/templates/parse-workflow-fail.md
vars: |
workflow_url: ${{ steps.workflow-url.outputs.workflow_url }}
- name: add fail label
if: failure()
uses: actions-ecosystem/action-add-labels@v1.1.0
with:
labels: workflow_error

0 comments on commit 9e27012

Please sign in to comment.