-
Notifications
You must be signed in to change notification settings - Fork 43
42 lines (35 loc) · 1.16 KB
/
update_container_list.yml
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: Update YAML from container CSV
on:
pull_request_target:
paths:
- 'container/containers.csv'
jobs:
update_csv:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout pull request branch
uses: actions/checkout@v3
with:
token: ${{ secrets.CI_TOKEN }}
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: containers
create-args: numpy pandas pyyaml tabulate
generate-run-shell: true
- name: Update YAML files and Markdown table
shell: micromamba-shell {0}
run: |
python3 .github/workflows/export_envs.py
cat container/readme/README.md > container/README.md
cat container/readme/containers.md >> container/README.md
- name: Commit changes to YAML files and Markdown table
uses: EndBug/add-and-commit@v9
with:
push: true
message: Update YAML files and Markdown table