File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Squash History
2-
32on :
43 push :
54 branches : [main]
6-
75permissions :
86 contents : write
9-
107jobs :
118 squash :
129 runs-on : ubuntu-latest
1310 steps :
1411 - uses : actions/checkout@v4
1512 with :
1613 fetch-depth : 0
17-
1814 - name : Check if already single commit
1915 id : check
2016 run : |
2117 COMMIT_COUNT=$(git rev-list --count HEAD)
2218 echo "count=$COMMIT_COUNT" >> "$GITHUB_OUTPUT"
23-
2419 - name : Squash entire history to one commit
2520 if : steps.check.outputs.count != '1'
2621 run : |
3025 git branch -M temp main
3126 git push --force origin main
3227 env :
33- GIT_AUTHOR_NAME : SteamClientHomebrew
34- GIT_AUTHOR_EMAIL : noreply@steambrew.app
35- GIT_COMMITTER_NAME : SteamClientHomebrew
36- GIT_COMMITTER_EMAIL : noreply@steambrew.app
28+ GIT_AUTHOR_NAME : github-actions[bot]
29+ GIT_AUTHOR_EMAIL : 41898282+github-actions[bot]@users.noreply.github.com
30+ GIT_COMMITTER_NAME : github-actions[bot]
31+ GIT_COMMITTER_EMAIL : 41898282+github-actions[bot]@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments