Skip to content

matrix

matrix #7

Workflow file for this run

name: Branch Deleted
#on: delete
on:
push:
branches: ["feature/bump-up", "master"]
pull_request:
branches: [master]
jobs:
delete:
strategy:
matrix:
image:
- vscode-devcontainers/commons
- vscode-devcontainers/devops
- vscode-devcontainers/python
- vscode-devcontainers/commons-golang
# if: github.event.ref_type == 'branch'
runs-on: ubuntu-latest
steps:
- id: env-setup
run: |
export image_tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
export image_tag=$(echo $image_tag | tr / -)
echo "image_tag=$image_tag" >> $GITHUB_OUTPUT
- name: Delete image
uses: lazyfrosch/ghcr-delete-image-action@main
continue-on-error: true
with:
# NOTE: at now only orgs is supported
owner: ${{ github.actor }}
name: ${{ matrix.image }}
is_user: true
# NOTE: using Personal Access Token
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.env-setup.outputs.image_tag }}