forked from emscripten-forge/recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 907 Bytes
/
delete_package.yaml
File metadata and controls
35 lines (30 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Delete package
on:
workflow_dispatch:
inputs:
package_name:
description: Name of the package to be deleted
required: true
default: myBadPackage-9.4.0-py313h6e18b15_0.tar.bz2
jobs:
delete_package:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Install micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-name: delete-pkg-env
init-shell: bash
create-args: >-
python
requests
- name: Delete package
shell: bash -l {0}
env:
PREFIX_DEV_API_KEY: ${{ secrets.PREFIX_DEV_API_KEY }}
PACKAGE_NAME: ${{ github.event.inputs.package_name }}
run: |
python .github/workflows/delete_package.py \
--token "$PREFIX_DEV_API_KEY" --package "$PACKAGE_NAME"