This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
72 lines (61 loc) · 1.92 KB
/
audit.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: audit
# on:
# schedule:
# - cron: '0 * * * *'
jobs:
audit:
name: audit
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ secrets.PYVER }}
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
miniforge-variant: Mambaforge
- name: do local setup and stop me if needed
shell: bash -l {0}
run: |
source local_setup.sh
python stop_me_if_needed.py
- name: install bot code
shell: bash -l {0}
run: |
source install_bot_code.sh
env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
- name: audit dependencies
shell: bash -l {0}
run: |
pushd cf-graph
conda activate run_env
conda-forge-tick --run 5
popd
env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
- name: deploy
shell: bash -l {0}
if: github.ref == 'refs/heads/master' && ! cancelled()
run: |
pushd cf-graph
conda activate run_env
export CIRCLE_BUILD_URL="https://github.com/regro/autotick-bot/actions/runs/${RUN_ID}"
export CIRCLE_BUILD_NUM="actually-actions-${RUN_ID}"
conda-forge-tick --run -1
popd
env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
RUN_ID: ${{ github.run_id }}
- name: bump on fail
shell: bash -l {0}
if: github.ref == 'refs/heads/master' && failure()
run: |
export ACTION_URL="https://github.com/regro/autotick-bot/actions/runs/${RUN_ID}"
python bump_bot_team.py
env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
RUN_ID: ${{ github.run_id }}
ACTION_NAME: ${{ github.workflow }}