This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
Bump flake.lock and related dependencies #42
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: Bump flake.lock and related dependencies | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/bump-flake-lock-and-selfup.yml' | |
schedule: | |
# At 10:17 JST on day-of-month 1 and on Monday. | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | |
- cron: '17 1 1 * 1' | |
workflow_dispatch: | |
jobs: | |
bump: | |
uses: kachick/selfup/.github/workflows/[email protected] | |
if: (github.event.sender.login == 'kachick') || (github.event_name != 'pull_request') | |
with: | |
app_id: ${{ vars.APP_ID }} | |
dry-run: ${{ github.event_name == 'pull_request' }} | |
optional-run: | | |
nix develop --command bash -c 'node --version | tr -d v' > .node-version | |
git add .node-version | |
# https://stackoverflow.com/q/34807971 | |
git update-index -q --really-refresh | |
git diff-index --quiet HEAD || git commit -m 'Update .node-version' .node-version | |
secrets: | |
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} |