Skip to content

Commit

Permalink
Merge pull request #45 from freedomofpress/feature-sign-rebase
Browse files Browse the repository at this point in the history
Sign and rebase
  • Loading branch information
apyrgio authored Nov 12, 2024
2 parents c63f8a9 + 6be6e2b commit 09d5e86
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sign_rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Sign and rebase
on:
issue_comment:
types: [created]

permissions:
contents: write

jobs:
rebase:
env:
GH_TOKEN: ${{ github.token }}
name: Sign and rebase
runs-on: ubuntu-latest
if: >-
github.event.issue.pull_request != '' &&
(
contains(github.event.comment.body, '/sign-and-rebase') ||
contains(github.event.comment.body, '/autosquash')
)
steps:
- name: Checkout the latest code
uses: actions/checkout@v4
- name: Sign and rebase
run: |
git rebase -s --autosquash origin/main
git push -f

0 comments on commit 09d5e86

Please sign in to comment.