Create a Nixpkgs PR after releases #55
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- name: build | |
run: nix-build -A ci | |
# FIXME: For now adding it here so it can be tested in a PR without changing release.yml | |
nixpkgs-pr: | |
runs-on: ubuntu-latest | |
# needs: release | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# FIXME: Update before merging | |
repository: infinixbot/nixpkgs | |
- name: Get version before | |
run: echo "before=$(<pkgs/test/check-by-name/pinned-version.txt)" >> $GITHUB_ENV | |
- name: Update the version | |
run: nixpkgs/pkgs/test/check-by-name/update-pinned-tool.sh | |
- name: Get version after | |
run: echo "after=$(<pkgs/test/check-by-name/pinned-version.txt)" >> $GITHUB_ENV | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
# To trigger CI for automated PRs, we use a separate machine account | |
# See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs | |
# and https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#push-pull-request-branches-to-a-fork | |
token: ${{ secrets.MACHINE_USER_PAT }} | |
push-to-fork: infinixbot/nixpkgs | |
committer: infinixbot <[email protected]> | |
author: infinixbot <[email protected]> | |
branch: check-by-name-update | |
commit-message: "nixpkgs-check-by-name: ${{ env.before }} -> ${{ env.after }}" | |
title: "nixpkgs-check-by-name: ${{ env.before }} -> ${{ env.after }}" | |
body: | | |
Update the nixpkgs-check-by-name tooling version used by CI. |