Skip to content

Stale 5

Stale 5 #6

Workflow file for this run

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 config user.name github-actions
git config user.email github-actions@github.com
gh pr checkout ${{ github.event.issue.number }}
git rebase -f --gpg-sign --autosquash origin/main
git push -f