Skip to content

Commit

Permalink
ci: squash with previous commit once the job has created a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Oct 28, 2024
1 parent 77c5dac commit 2ab317d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,9 @@ jobs:
if: ${{ always() && github.event_name != 'pull_request' }}
steps:
- uses: actions/checkout@v4
- name: Pull previous commit
run: git reset --soft HEAD~1
shell: bash
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
Expand Down Expand Up @@ -661,13 +664,17 @@ jobs:
passphrase: ${{ secrets.CI_GPG_PASS }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Commit
- name: Create commit
uses: EndBug/add-and-commit@v9
with:
commit: -S
message: 'chore: update files'
message: ${{ github.event.head_commit.message }}
push: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push commit
run: git push -f
shell: bash
pages:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2ab317d

Please sign in to comment.