Update delete-old-pre-releases.yml #2
Workflow file for this run
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 old pre releases | |
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+beta.[0-9]+ | |
- v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+ | |
- 'v[0-9]+.[0-9]+.[0-9]+beta.[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+' | |
defaults: | |
run: | |
working-directory: . | |
jobs: | |
build: | |
name: Cleanup old pre releases | |
environment: GLOBAL | |
runs-on: ubuntu-latest | |
steps: | |
- name: List contents | |
run: | | |
ls -lha | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cleanup old pre releases | |
uses: jay2610/[email protected] | |
with: | |
repo: tekdi/eg-backend # defaults to current repo | |
keep_latest: 3 | |
delete_tags: true | |
#delete_tag_pattern: beta # defaults to "" | |
delete_type: 'prerelease' | |
#target_branch: 'master' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |