Skip to content

relock

relock #12

Workflow file for this run

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"