Skip to content

Commit 148d97a

Browse files
Move Git history reset after successful script run
1 parent 7a5e27e commit 148d97a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ jobs:
1414
ref: main
1515
fetch-depth: 0
1616

17-
- name: Drop history of auto-generated files (readme.md, prs.md issues.md)
18-
run: |
19-
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --force --index-filter "git rm --ignore-unmatch readme.md prs.md issues.md" --prune-empty HEAD
20-
2117
- name: Install Bun
2218
uses: oven-sh/setup-bun@v2
2319

@@ -51,6 +47,10 @@ jobs:
5147
name: todos.json
5248
path: todos.json
5349

50+
- name: Drop history of auto-generated files (readme.md, prs.md issues.md)
51+
run: |
52+
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --force --index-filter "git rm --ignore-unmatch readme.md prs.md issues.md" --prune-empty HEAD
53+
5454
- name: Commit and force push Git changes back to the workflow repository
5555
run: |
5656
set -e

0 commit comments

Comments
 (0)