Skip to content

clean-and-update #34766

clean-and-update

clean-and-update #34766

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@571d6d5735006079443f1f50ecc7a638a8569a94
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
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@617811f69075e3fd3ae68ca64220ad065877f246 # 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 }}