FFmpeg-Builds/.github/workflows/clean.yml

24 lines
552 B
YAML
Raw Normal View History

2023-03-18 13:19:24 +00:00
name: Cleanup
on:
workflow_dispatch: ~
schedule:
- cron: '0 20 * * *'
jobs:
cleanup:
name: Cleanup
runs-on: ubuntu-latest
2023-03-18 13:30:26 +00:00
env:
HAVE_PAT: ${{ secrets.CLEANUP_PAT != '' }}
2023-03-18 13:19:24 +00:00
steps:
- name: Cleanup
2023-03-18 13:30:26 +00:00
if: ${{ env.HAVE_PAT == 'true' }}
2023-03-18 13:19:24 +00:00
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
with:
2023-03-18 13:27:17 +00:00
token: ${{ secrets.CLEANUP_PAT }}
2023-03-18 13:19:24 +00:00
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
owner_type: user
untagged_only: true