diff options
author | Nextcloud bot <bot@nextcloud.com> | 2022-06-11 18:15:12 +0300 |
---|---|---|
committer | Nextcloud bot <bot@nextcloud.com> | 2022-06-11 18:15:12 +0300 |
commit | d98954cf604b6ec3b82ec255b0c5f53ea0205201 (patch) | |
tree | 2d1148b221ba833f66f757fd8966869a7fd1ebc7 /.github | |
parent | b892d8d80d58ce1800bb18e4c7b436f9b587f739 (diff) |
Updating command-rebase.yml workflow from templatefeat/workflow-auto-update-command-rebase.yml
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/command-rebase.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/command-rebase.yml b/.github/workflows/command-rebase.yml index 80037056..78fcf5d1 100644 --- a/.github/workflows/command-rebase.yml +++ b/.github/workflows/command-rebase.yml @@ -9,16 +9,21 @@ on: issue_comment: types: created +permissions: + contents: read + jobs: rebase: runs-on: ubuntu-latest + permissions: + contents: none # On pull requests and if the comment starts with `/rebase` if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase') steps: - name: Add reaction on start - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: token: ${{ secrets.COMMAND_BOT_PAT }} repository: ${{ github.event.repository.full_name }} @@ -32,12 +37,12 @@ jobs: token: ${{ secrets.COMMAND_BOT_PAT }} - name: Automatic Rebase - uses: cirrus-actions/rebase@1.5 + uses: cirrus-actions/rebase@1.7 env: GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }} - name: Add reaction on failure - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 if: failure() with: token: ${{ secrets.COMMAND_BOT_PAT }} |