github action for the conda-forge autotick bot
To use this action, add the following YAML file at .github/workflows/main.yml
on:
status: {}
check_suite:
types:
- completed
jobs:
regro-cf-autotick-bot-action:
runs-on: ubuntu-latest
name: regro-cf-autotick-bot-action
steps:
- name: checkout
uses: actions/checkout@v2
- name: regro-cf-autotick-bot-action
id: regro-cf-autotick-bot-action
uses: regro/cf-autotick-bot-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}You can turn off PR automerging per feedstock by adding the following to the
conda-forge.yml
bot:
automerge: FalseTo ignore the linter, add the following.
bot:
automerge: False
automerge_options:
ignored_statuses:
- linterThe default is currently False if these entries are not present. Set them to True
to turn on automerging.
The GitHub action always points to the prod tag of the
condaforge/rego-cf-autotick-bot-action
Docker image.
-
To redeploy the bot, push a new image to the
prodtag.docker build -t condaforge/rego-cf-autotick-bot-action:prod . docker push condaforge/rego-cf-autotick-bot-action:prod -
To take the bot down, delete the tag from the Docker repository. The GitHub Action will still run in this case, but it will always fail.
The code has a test suite. However, to test it live, you can do one of two things.
-
Bump the version of this package by making a GitHub release. Then, after roughly an hour or so, this feedstock should get an automerge PR with the version bump. Several other PRs are open on the feedstock and those should not be merged by the bot.
-
You can push an image to the
devtag of the Docker repo. Then, point the action in the.github/workflows/main.yamlof your testing repo to thedevbranch of this repo by changingregro/cf-autotick-bot-action@mastertoregro/cf-autotick-bot-action@dev.