Skip to content

Commit

Permalink
Report failure during auto-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
na4zagin3 authored Oct 23, 2023
1 parent 62a8fa8 commit c2ca313
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/automatic-rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,22 @@ jobs:
with:
autosquash: ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
- name: comment PR
uses: actions/github-script@v2
if: failure()
env:
HEAD_BRANCH: ${{ github.head_ref }}
GITHUB_ACTOR: ${{ github.actor }}
with:
github-token: ${{ github.token }}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `
**Rebase failed!**
See the [execution logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
`
})

0 comments on commit c2ca313

Please sign in to comment.