Automatically update niv-managed dependencies #1951
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/dfinity-lab/sdk/dispatches | |
# https://help.github.com/en/actions/reference/events-that-trigger-workflows#external-events-repository_dispatch | |
repository_dispatch: | |
types: niv-updater-nudge | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 16 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
# When getting Rust dependencies, retry on network error: | |
CARGO_NET_RETRY: 10 | |
# Use the local .curlrc | |
CURL_HOME: . | |
jobs: | |
niv-updater: | |
name: 'Check for updates' | |
timeout-minutes: 2 # if this takes more than 2 minutes then something's wrong | |
runs-on: ubuntu-latest | |
steps: | |
- name: niv-updater-action | |
uses: knl/niv-updater-action@60f23607814cf4f2e80a1e32ee74f8323897d09e | |
with: | |
whitelist: 'common,advisory-db,napalm' | |
title_prefix: 'build: ' | |
labels: | | |
automerge-squash | |
env: | |
GITHUB_TOKEN: ${{ secrets.NIV_UPDATER_TOKEN }} |