Skip to content

Commit

Permalink
Harden automatic-rebase.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
na4zagin3 authored Oct 23, 2023
1 parent 88ff58a commit 24847ff
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/automatic-rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,14 @@ jobs:
- name: Report the failure
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 }}).
See the [execution logs](https://github.com/${context.github.repository}/actions/runs/${context.github.run_id}).
`
})

0 comments on commit 24847ff

Please sign in to comment.