relock #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: relock | |
on: | |
workflow_dispatch: null | |
schedule: | |
- cron: '*/30 * * * *' | |
concurrency: relock | |
jobs: | |
relock: | |
name: relock | |
runs-on: "ubuntu-latest" | |
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-forge.yml | |
- name: relock env | |
uses: beckermr/relock-conda@v5 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
action: file | |
- name: upload conda-lock.yml to artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: conda-lock.yml | |
path: conda-lock.yml | |
tests: | |
needs: relock | |
uses: regro/cf-scripts/.github/workflows/tests-reusable.yml@main | |
with: | |
lockfile: conda-lock.yml | |
lockfile-is-artifact: true | |
secrets: | |
CODECOV_TOKEN: "" |