Skip to content

Commit

Permalink
Add workflow for deleting packages (#244)
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Sun <[email protected]>
  • Loading branch information
marshtompsxd authored Sep 7, 2023
1 parent 6461db2 commit f7cdc23
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/delete-pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
workflow_dispatch:
inputs:
image:
description: 'Name of the image to be deleted'
required: true
type: string
jobs:
use_api:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Delete packages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api --method DELETE -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /orgs/vmware-research/packages/container/verifiable-controllers%2F${{ inputs.image }}

0 comments on commit f7cdc23

Please sign in to comment.