Skip to content

clean-and-update #36024

clean-and-update

clean-and-update #36024

name: clean-and-update
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch: null
issue_comment:
jobs:
relock:
name: relock
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: generate token
id: generate_token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
with:
app-id: ${{ secrets.CF_CURATOR_APP_ID }}
private-key: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: relock
uses: beckermr/relock-conda@7e9057f62545d3b3a3fc10ccc93cec4d0bd2c5a5
with:
github-token: ${{ steps.generate_token.outputs.token }}
automerge: true
skip-if-pr-exists: true
include-only-packages:
anaconda-client
conda-smithy
conda
conda-build
conda-libmamba-solver
mamba
conda-forge-tick
conda-forge-feedstock-ops
conda-recipe-manager
conda-souschef
clean-and-cache:
name: clean-and-cache
runs-on: "ubuntu-latest"
if: github.event_name != 'issue_comment'
defaults:
run:
shell: bash -leo pipefail {0}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: setup conda
uses: mamba-org/setup-micromamba@06375d89d211a1232ef63355742e9e2e564bc7f7 # v1
with:
environment-file: conda-lock.yml
environment-name: webservices
condarc: |
show_channel_urls: true
channel_priority: strict
channels:
- conda-forge
- name: generate token
id: generate_token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
with:
app-id: ${{ secrets.CF_CURATOR_APP_ID }}
private-key: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: install code
run: |
git config --global user.email "79913779+conda-forge-curator[bot]@users.noreply.github.com"
git config --global user.name "conda-forge-curator[bot]"
git config --global pull.rebase false
mkdir -p ~/.conda-smithy/ && echo $GH_TOKEN > ~/.conda-smithy/github.token
pip install --no-deps --no-build-isolation -e .
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: clean cf-staging
run: |
python scripts/clean_cf_staging.py
env:
STAGING_BINSTAR_TOKEN: ${{ secrets.HEROKU_ONLY_STAGING_BINSTAR_TOKEN }}
- name: cache status data
run: |
cache-status-data
env:
CF_WEBSERVICES_APP_ID: ${{ secrets.CF_CURATOR_APP_ID }}
CF_WEBSERVICES_PRIVATE_KEY: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}