Skip to content

Commit

Permalink
Update softfix.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximinhan authored Aug 11, 2023
1 parent b9b1ae9 commit 0f7c983
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/softfix.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: Softfix workflow
name: autosquash workflow
on:
issue_comment:
types: [created]
jobs:
softfix:
autosquash:
name: Softfix action
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/softfix')
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/squashcommits')
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- uses: dekvall/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- uses: theoremlp/autosquash@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ github.event.pull_request.number }}
squash-commit-title: "${{ github.event.pull_request.title }} (#${{ github.event.pull_request.number }})"
squash-commit-message: "${{ github.event.pull_request.body }}"

0 comments on commit 0f7c983

Please sign in to comment.