Automatically update niv-managed dependencies #246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automatically update niv-managed dependencies | |
on: | |
# Manual override, one can start the workflow by running: | |
# curl -H "Accept: application/vnd.github.everest-preview+json" \ | |
# -H "Authorization: token <your-token-here>" \ | |
# --request POST \ | |
# --data '{"event_type": "niv-updater-nudge", "client_payload": {}}' \ | |
# https://api.github.com/repos/knl/dotskel/dispatches | |
# https://help.github.com/en/actions/reference/events-that-trigger-workflows#external-events-repository_dispatch | |
repository_dispatch: | |
types: niv-updater-nudge | |
# this is to trigger the workflow manually from the Github page | |
workflow_dispatch: | |
inputs: | |
with_debug: | |
description: Enable debugging output | |
required: false | |
default: false | |
whitelist: | |
description: Which packages to build | |
required: false | |
default: '' | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
# Run every Tuesday at 03:30, but we use the dispatch to trigger when urgent | |
# This used to run every day, but that is way too many changes... | |
- cron: '30 3 * * 2' | |
jobs: | |
niv-updater: | |
name: 'Check for updates (weekly)' | |
runs-on: ubuntu-latest | |
steps: | |
- name: niv-updater-action | |
uses: knl/niv-updater-action@main | |
with: | |
blacklist: 'emacs-overlay,doomemacs,nixpkgs' | |
keep_updating: true | |
branch_prefix: 'update/' | |
env: | |
GITHUB_TOKEN: ${{ secrets.NIV_UPDATER_TOKEN }} |