Bump github/codeql-action from 2 to 3 #56
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 PR images | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
purge-images: | |
name: Cleanup PR images from ghcr.io | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
app: | |
- met-airquality | |
- met-anomalycor | |
- met-cyclone | |
- met-ensemble | |
- met-object | |
- met-precip | |
- met-surface | |
- met-upperair | |
steps: | |
- name: Get tag & appname | |
env: | |
APP: '${{ matrix.app }}' | |
run: | | |
echo "BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_ENV | |
echo "APP_LOWERCASE=${APP,,}" >> $GITHUB_ENV | |
- name: Cleanup images | |
if: env.BRANCH != 'development' # don't prune images from the development branch | |
uses: bots-house/[email protected] | |
with: | |
owner: dtcenter | |
name: metexpress/development/${{ env.APP_LOWERCASE }} | |
token: ${{ secrets.GHCR_CLEANUP_PAT }} | |
tag: ${{ env.BRANCH }} |