-
-
Notifications
You must be signed in to change notification settings - Fork 31
64 lines (56 loc) · 2.17 KB
/
clean-and-update.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
name: clean-and-update
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch: null
jobs:
clean-and-update:
name: clean-and-update
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
with:
python-version: '3.10'
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
- name: generate token
id: generate_token
uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1
with:
app-id: ${{ secrets.CF_CURATOR_APP_ID }}
private-key: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: configure conda
shell: bash -l {0}
run: |
conda config --set show_channel_urls True
conda config --add channels conda-forge
conda install --yes --quiet --file conda-requirements.txt --file conda-test-requirements.txt
git config --global user.email "79913779+conda-forge-curator[bot]@users.noreply.github.com"
git config --global user.name "conda-forge-curator[bot]"
mkdir -p ~/.conda-smithy/ && echo $GH_TOKEN > ~/.conda-smithy/github.token
pip install --no-deps -e .
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: clean cf-staging
shell: bash -l {0}
run: |
python scripts/clean_cf_staging.py
env:
STAGING_BINSTAR_TOKEN: ${{ secrets.HEROKU_ONLY_STAGING_BINSTAR_TOKEN }}
- name: cache status data
shell: bash -l {0}
run: |
cache-status-data
env:
CF_WEBSERVICES_APP_ID: ${{ secrets.CF_CURATOR_APP_ID }}
CF_WEBSERVICES_PRIVATE_KEY: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
- name: update and redeploy if needed
shell: bash -l {0}
run: |
update-webservices
env:
CF_WEBSERVICES_APP_ID: ${{ secrets.CF_CURATOR_APP_ID }}
CF_WEBSERVICES_PRIVATE_KEY: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}