Skip to content

bot-versions

bot-versions #18831

Workflow file for this run

name: bot-versions
on:
schedule:
- cron: '15,45 * * * *'
workflow_dispatch: null
concurrency: versions
jobs:
versions:
name: versions
runs-on: "ubuntu-latest"
strategy:
matrix:
job_num: [1, 2, 3, 4, 5, 6]
defaults:
run:
shell: bash -leo pipefail {0}
steps:
- uses: actions/checkout@v4
with:
path: cf-scripts
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: cf-scripts/conda-lock.yml
environment-name: cf-scripts
condarc-file: cf-scripts/autotick-bot/condarc
- name: do local setup and stop me if needed
run: |
cd cf-scripts
python autotick-bot/stop_me_if_needed.py
- name: install bot code
if: success() && ! env.CI_SKIP
run: |
source cf-scripts/autotick-bot/install_bot_code.sh
env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
- name: get versions
if: success() && ! env.CI_SKIP
run: |
pushd cf-graph
conda-forge-tick update-upstream-versions --job=${BOT_JOB} --n-jobs=6
env:
BOT_JOB: ${{ matrix.job_num }}
CF_TICK_GRAPH_DATA_BACKENDS: "${{ vars.CF_TICK_GRAPH_DATA_BACKENDS }}"
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}
- name: deploy
if: github.ref == 'refs/heads/master' && ! cancelled() && ! env.CI_SKIP
run: |
pushd cf-graph
export CIRCLE_BUILD_URL="https://github.com/regro/cf-scripts/actions/runs/${RUN_ID}"
export CIRCLE_BUILD_NUM="actually-actions-${RUN_ID}"
conda-forge-tick deploy-to-github
env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
RUN_ID: ${{ github.run_id }}
- name: bump on fail
if: github.ref == 'refs/heads/master' && failure() && ! env.CI_SKIP
run: |
export ACTION_URL="https://github.com/regro/cf-scripts/actions/runs/${RUN_ID}"
python cf-scripts/autotick-bot/bump_bot_team.py
env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
RUN_ID: ${{ github.run_id }}
ACTION_NAME: ${{ github.workflow }}