From 6201ec4acb496fdd6bec635ca9ed0e59cd4089b1 Mon Sep 17 00:00:00 2001 From: Kiwi Browser <40272275+kiwibrowser@users.noreply.github.com> Date: Sun, 15 Aug 2021 21:20:23 +0300 Subject: [PATCH] Update delete_committed_file.yml --- .github/workflows/delete_committed_file.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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