diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-08-18 11:33:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 11:33:26 +0300 |
commit | 44594edf745b8f274552bdddd7a660aefe6b0e99 (patch) | |
tree | d686b61bbdda0c1894b85b8ee53c6156406a6480 | |
parent | 6cba7b466976ca856e04e0cc1eda8b0f81495762 (diff) | |
parent | c482a94a2191cf4a0853bb388eb3f9edec99ae5e (diff) |
Merge pull request #273 from nextcloud/feat/workflow-auto-update-command-rebase.yml
-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 8003705..78fcf5d 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 }} |