Git LFS Maintenance #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Force LFS Prune" | |
on: | |
workflow_dispatch: | |
jobs: | |
force-prune: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Shallow clone without LFS | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
lfs: false | |
- name: Force LFS prune | |
run: | | |
export GIT_LFS_SKIP_SMUDGE=1 | |
git config --global user.email [email protected] | |
git config --global user.name invariantStats | |
git lfs install | |
git lfs prune --force | |
git lfs push origin master --all | |
git push origin master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |