Skip to content

Commit e49d822

Browse files
authored
Merge pull request #28284 from nextcloud/feat/workflow-auto-update-command-rebase.yml
Updating command-rebase.yml workflow from template
2 parents afb0b37 + c854a3f commit e49d822

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/command-rebase.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
55

6+
name: Rebase command
7+
68
on:
79
issue_comment:
8-
types: [ created ]
9-
10-
name: Automatic Rebase
10+
types: created
1111

1212
jobs:
1313
rebase:
14-
name: Rebase
14+
runs-on: ubuntu-latest
15+
1516
# On pull requests and if the comment starts with `/rebase`
1617
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
17-
runs-on: ubuntu-latest
1818

1919
steps:
2020
- name: Add reaction on start
@@ -30,8 +30,17 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232
token: ${{ secrets.COMMAND_BOT_PAT }}
33-
33+
3434
- name: Automatic Rebase
3535
uses: cirrus-actions/rebase@1.5
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
38+
39+
- name: Add reaction on failure
40+
uses: peter-evans/create-or-update-comment@v1
41+
if: failure()
42+
with:
43+
token: ${{ secrets.COMMAND_BOT_PAT }}
44+
repository: ${{ github.event.repository.full_name }}
45+
comment-id: ${{ github.event.comment.id }}
46+
reaction-type: "-1"

0 commit comments

Comments
 (0)