diff --git a/.github/workflows/delete_committed_file.yml b/.github/workflows/delete_committed_file.yml index 5a11bd42..7e9d5057 100644 --- a/.github/workflows/delete_committed_file.yml +++ b/.github/workflows/delete_committed_file.yml @@ -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