Skip to content

Commit

Permalink
Merge pull request #4526 from nextcloud/feat/workflow-auto-update-com…
Browse files Browse the repository at this point in the history
…mand-rebase.yml

Updating command-rebase.yml workflow from template
  • Loading branch information
mgallien authored Jun 26, 2022
2 parents bc1509d + 9b0591a commit 5657fc4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/command-rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ 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')
Expand All @@ -31,11 +36,8 @@ jobs:
fetch-depth: 0
token: ${{ secrets.COMMAND_BOT_PAT }}

- name: Fix permissions
run: git config --global --add safe.directory /github/workspace

- name: Automatic Rebase
uses: cirrus-actions/rebase@1.5
uses: cirrus-actions/rebase@1.7
env:
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}

Expand Down

0 comments on commit 5657fc4

Please sign in to comment.