-
Notifications
You must be signed in to change notification settings - Fork 18
55 lines (47 loc) · 1.32 KB
/
relock.yaml
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
name: relock
on:
workflow_dispatch: null
schedule:
- cron: '*/30 * * * *'
concurrency: relock
jobs:
relock:
name: relock
runs-on: "ubuntu-latest"
outputs:
relocked: ${{ steps.relock.outputs.relocked }}
steps:
# - uses: actions/checkout@v4
- name: download env and lockfile
run: |
wget https://raw.githubusercontent.com/regro/cf-scripts/main/environment.yml
wget https://raw.githubusercontent.com/regro/cf-scripts/main/conda-lock.yml
- name: relock env
id: relock
uses: beckermr/relock-conda@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
action: file
- name: upload conda-lock.yml to artifact
if: steps.relock.outputs.relocked == 'true'
uses: actions/upload-artifact@v4
with:
name: conda-lock.yml
path: conda-lock.yml
tests:
needs: relock
if: needs.relock.outputs.relocked == 'true'
uses: regro/cf-scripts/.github/workflows/tests-reusable.yml@main
with:
lockfile: conda-lock.yml
lockfile-is-artifact: true
secrets:
CODECOV_TOKEN: ""
push:
needs: [relock, tests]
if: needs.relock.outputs.relocked == 'true'
runs-on: ubuntu-latest
steps:
- name: push changes
run:
echo "Pushing changes"