Skip to content

Commit

Permalink
Improve fast-forward merge
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Nov 14, 2023
1 parent b45f017 commit 0f7c49b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ jobs:
if: |
github.event.issue.pull_request &&
github.event.issue.state == 'open' &&
github.event.comment.author_association == 'OWNER' &&
(
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'COLLABORATOR'
) &&
github.event.comment.body == '/fast-forward-merge'
permissions:
actions: write
contents: write
pull-requests: write

Expand All @@ -26,7 +31,7 @@ jobs:
with:
fetch-depth: 0
- name: Minimize calling comment
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down Expand Up @@ -62,3 +67,8 @@ jobs:
\`\`\`
$(cat output.log)
\`\`\`"
- name: Run CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run General -r ${{ fromJSON(steps.pr.outputs.base_ref).baseRefName }}

0 comments on commit 0f7c49b

Please sign in to comment.