Skip to content

🤖🆙❄️

🤖🆙❄️ #66

name: 🤖🆙❄️
on:
pull_request:
paths:
- '.github/workflows/update-nixpkgs-and-versions-in-ci.yml'
schedule:
# Every Monday 10:17 JST
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: '17 1 * * 1'
workflow_dispatch:
jobs:
update-nixpkgs:
uses: kachick/selfup/.github/workflows/[email protected]
with:
app_id: ${{ vars.APP_ID }}
dry-run: ${{ github.event_name == 'pull_request' }}
pr-title: 'Bump flake.lock and related dependencies'
optional-run: |
nix develop --command ruby -e 'puts RUBY_VERSION' > .ruby-version
# https://stackoverflow.com/q/34807971
git update-index -q --really-refresh
git diff-index --quiet HEAD || git commit -m 'Update .ruby-version' .ruby-version
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}