nix-flake-update #292
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: nix-flake-update | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
nix-flake-update: | |
if: ${{ github.repository == 'wasmCloud/wasmCloud' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: rvolosatovs/nix-flake-update-action@7249aa67d87e2a195c376fe34c230af0862a9900 | |
with: | |
app-id: ${{ secrets.BOT_APP_ID }} | |
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }} | |
assignees: rvolosatovs | |
reviewers: rvolosatovs | |
delete-branch: true | |
signoff: true | |
labels: dependencies | |
oci-base-update: | |
if: ${{ github.repository == 'wasmCloud/wasmCloud' }} | |
runs-on: ubuntu-latest | |
steps: | |
- id: app-token | |
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 | |
with: | |
app-id: ${{ secrets.BOT_APP_ID }} | |
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }} | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d # v16 | |
- name: Update OCI image bases | |
id: update | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email github-actions[bot]@users.noreply.github.com | |
./nix/update-images.sh | |
if ! git diff --exit-code; then | |
echo "updated=true" >> $GITHUB_OUTPUT | |
fi | |
- uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 | |
if: ${{ steps.update.outputs.updated == 'true' }} | |
with: | |
assignees: rvolosatovs, joonas | |
reviewers: rvolosatovs, joonas | |
author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>' | |
body: | | |
## Description | |
Automated OCI image base update | |
branch: build/update-oci-bases | |
commit-message: 'build(nix): update OCI image bases' | |
delete-branch: true | |
labels: dependencies | |
signoff: true | |
title: 'build(nix): update OCI image bases' | |
token: ${{ steps.app-token.outputs.token }} |