Skip to content

.github/workflows/withdraw-repos.yaml #13

.github/workflows/withdraw-repos.yaml

.github/workflows/withdraw-repos.yaml #13

on:
workflow_dispatch:
inputs:
dry_run:
type: boolean
default: 'true'
description: If true, just log
jobs:
withdraw:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: chainguard-dev/actions/setup-chainctl@main
with:
identity: 720909c9f5279097d847ad02a2f24ba8f59de36a/b6461e99e132298f
- run: |
for repo in $(grep -v '\#' withdrawn-repos.txt); do
if [[ "${{ github.event.inputs.dry_run }}" == "false" ]]; then
chainctl image repo rm $repo || true
else
echo "DRY RUN: chainctl image repo rm $repo || true"
fi
done