Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Commit 44594ed

Browse files
authored
Merge pull request #273 from nextcloud/feat/workflow-auto-update-command-rebase.yml
2 parents 6cba7b4 + c482a94 commit 44594ed

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/command-rebase.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,21 @@ on:
99
issue_comment:
1010
types: created
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
rebase:
1417
runs-on: ubuntu-latest
18+
permissions:
19+
contents: none
1520

1621
# On pull requests and if the comment starts with `/rebase`
1722
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
1823

1924
steps:
2025
- name: Add reaction on start
21-
uses: peter-evans/create-or-update-comment@v1
26+
uses: peter-evans/create-or-update-comment@v2
2227
with:
2328
token: ${{ secrets.COMMAND_BOT_PAT }}
2429
repository: ${{ github.event.repository.full_name }}
@@ -32,12 +37,12 @@ jobs:
3237
token: ${{ secrets.COMMAND_BOT_PAT }}
3338

3439
- name: Automatic Rebase
35-
uses: cirrus-actions/rebase@1.5
40+
uses: cirrus-actions/rebase@1.7
3641
env:
3742
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
3843

3944
- name: Add reaction on failure
40-
uses: peter-evans/create-or-update-comment@v1
45+
uses: peter-evans/create-or-update-comment@v2
4146
if: failure()
4247
with:
4348
token: ${{ secrets.COMMAND_BOT_PAT }}

0 commit comments

Comments
 (0)