-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(workflows): Squash all daily commits in a single one
- Loading branch information
1 parent
9ea0ee1
commit 351583a
Showing
1 changed file
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,21 +45,22 @@ jobs: | |
ghtoken: ${{ secrets.REPO_STATS }} | ||
databranch: repo_stats | ||
|
||
# squash-all-new-commits: | ||
# name: squash-new-commits | ||
# if: ${{ always() }} | ||
# needs: [j1, run-ghrs-with-matrix] | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout repo | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# ref: 'repo_stats' | ||
# | ||
# - name: Clone & Move to stats branch | ||
# run: | | ||
# git reset --soft $(git log --date=format:'%Y-%m-%d %H:%M:%S' | grep -B 2 $(date --date="yesterday" '+%F') | head -1 | cut -d' ' -f2-) | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "GitHub Action" | ||
# git commit -s -m "Add statistics for $(date '+%F')" | ||
# git push | ||
squash-all-new-commits: | ||
name: squash-new-commits | ||
if: ${{ always() }} | ||
needs: [j1, run-ghrs-with-matrix] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'repo_stats' | ||
|
||
- name: Clone & Move to stats branch | ||
run: | | ||
# git reset --soft $(git log --date=format:'%Y-%m-%d %H:%M:%S' | grep -B 2 $(date --date="yesterday" '+%F') | head -1 | cut -d' ' -f2-) | ||
git reset --soft HEAD~6 | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
git commit -s -m "Add statistics for $(date '+%F')" | ||
git push |