forked from emscripten-forge/recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.12 KB
/
delete_package.yaml
File metadata and controls
42 lines (37 loc) · 1.12 KB
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
35
36
37
38
39
40
41
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
channel_name:
description: Name of the channel
required: true
default: emscripten-forge-4x
jobs:
delete_package:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Install micromamba
uses: mamba-org/setup-micromamba@v3
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 }}
CHANNEL_NAME: ${{ github.event.inputs.channel_name }}
run: |
python .github/workflows/delete_package.py \
--token "$PREFIX_DEV_API_KEY" \
--package "$PACKAGE_NAME" \
--channel "$CHANNEL_NAME"