Cleanup #33
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: Cleanup | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 */14 * *' # every 14 days | |
jobs: | |
cleanup-updater: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
suite: | |
- { ecosystem: bundler } | |
- { ecosystem: cargo } | |
- { ecosystem: composer } | |
- { ecosystem: docker } | |
- { ecosystem: elm } | |
- { ecosystem: gitsubmodule } | |
- { ecosystem: github-actions } | |
- { ecosystem: gomod } | |
- { ecosystem: gradle } | |
- { ecosystem: mix } | |
- { ecosystem: maven } | |
- { ecosystem: npm } | |
- { ecosystem: nuget } | |
- { ecosystem: pub } | |
- { ecosystem: pip } | |
- { ecosystem: swift } | |
- { ecosystem: terraform } | |
steps: | |
- name: Delete old dependabot-updater-${{ matrix.suite.ecosystem }} images | |
uses: actions/delete-package-versions@v4 | |
with: | |
package-name: 'dependabot-updater-${{ matrix.suite.ecosystem }}' | |
package-type: 'container' | |
min-versions-to-keep: 20 | |
# exclude major and minor versions as per SemVer e.g. 1.20 | |
ignore-versions: '^([0-9]\\d*)\\.([0-9]\\d*)$' | |
cleanup-server: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete old dependabot-server images | |
uses: actions/delete-package-versions@v4 | |
with: | |
package-name: 'dependabot-server' | |
package-type: 'container' | |
min-versions-to-keep: 20 | |
# exclude major and minor versions as per SemVer e.g. 1.20 | |
ignore-versions: '^([0-9]\\d*)\\.([0-9]\\d*)$' |