Skip to content

Commit

Permalink
ci: squash with previous commit once the job has created a new one [s…
Browse files Browse the repository at this point in the history
…kip ci]
  • Loading branch information
null8626 committed Oct 29, 2024
1 parent 1c7e594 commit 49ab389
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,11 @@ jobs:
if: ${{ always() && github.event_name != 'pull_request' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- 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,11 +666,12 @@ jobs:
passphrase: ${{ secrets.CI_GPG_PASS }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Commit
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
commit: -S
message: 'chore: update files'
message: ${{ github.event.head_commit.message }}
push: --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pages:
Expand Down

0 comments on commit 49ab389

Please sign in to comment.