chore(deps): update renovatebot/github-action action to v41.0.3 #260
Workflow file for this run
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: Update nvfetcher | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: "0 2 * * *" # Every night at 0200 | |
push: | |
paths: | |
- pkgs/nvfetcher.toml | |
jobs: | |
update-nvfetcher: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- uses: workflow/nix-shell-action@v3.4.0 | |
id: update_nvfetcher | |
with: | |
packages: nvfetcher | |
script: | | |
cd pkgs | |
echo "OUTPUT<<EOF" >> $GITHUB_OUTPUT | |
echo "$(nvfetcher | sed -n '/Changes/,/$!d/p')" >> $GITHUB_OUTPUT | |
echo "EOF" >> $GITHUB_OUTPUT | |
- name: Generate token | |
uses: tibdex/github-app-token@v2 | |
id: generate-token | |
with: | |
app_id: ${{ secrets.BOT_APP_ID }} | |
private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }} | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
title: "chore(deps): update packages managed by nvfetcher" | |
commit-message: "chore(deps): update packages managed by nvfetcher" | |
delete-branch: true | |
labels: nvfetcher | |
committer: ro-bott <151924872+ro-bott[bot]@users.noreply.github.com> | |
author: ro-bott <151924872+ro-bott[bot]@users.noreply.github.com> | |
body: | | |
${{ steps.update_nvfetcher.outputs.OUTPUT }} | |
- name: Automerge | |
if: steps.cpr.outputs.pull-request-operation == 'created' | |
uses: peter-evans/enable-pull-request-automerge@v3 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} | |
merge-method: squash |