Delete old Cloudsmith artifacts #153
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: Delete old Cloudsmith artifacts | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- .github/workflows/delete-old-versions-in-archive.yml | |
- .github/scripts/delete-old-cloudsmith-artifacts.sh | |
branches: | |
- master | |
schedule: | |
- cron: '0 6 * * *' | |
jobs: | |
delete-old-cloudsmith-artifacts: | |
runs-on: ubuntu-latest | |
container: | |
image: almalinux:8 | |
env: | |
GITHUB_EVENT_NAME: ${{ github.event_name }} | |
CLOUDSMITH_API_TOKEN: ${{ secrets.CLOUDSMITH_API_TOKEN }} | |
volumes: | |
- ${{ github.workspace }}:/workspace | |
defaults: | |
run: | |
working-directory: /workspace | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Delete old artifacts | |
run: | | |
.github/scripts/delete-old-cloudsmith-artifacts.sh |