Update delete_committed_file.yml

This commit is contained in:
Kiwi Browser 2021-08-15 21:20:23 +03:00 committed by Arnaud GRANAL
parent c1f7808b54
commit 6201ec4acb

View File

@ -20,9 +20,7 @@ jobs:
git config --global user.email "github@actions"
git config --global user.name "Repository manager"
- name: Installing BFG
run: wget https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar
- run: java -jar bfg-1.14.0.jar --delete-files ${{ github.event.inputs.filename }} .
- name: Deleting file from history
run: git filter-branch --force --index-filter "git rm --cached --ignore-unmatch ${{ github.event.inputs.filename }" --prune-empty --tag-name-filter cat -- --all
- run: git push