diff options
| author | seth <[email protected]> | 2024-07-28 17:45:06 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-07-28 17:45:06 -0400 |
| commit | 741aaa6b0c0c5f35660493e4de475976e80fd596 (patch) | |
| tree | 2ca5d628607e06507e3e959e481bcb85432f4b7c /.github | |
| parent | 0c90a8b9ee7bb7b72e2d1e1c719cfe05dcfd8005 (diff) | |
ci: switch to DeterminateSystems/update-flake-lock
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-lock.yaml | 53 |
1 files changed, 7 insertions, 46 deletions
diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml index 10f9fd6..beb6d3a 100644 --- a/.github/workflows/update-lock.yaml +++ b/.github/workflows/update-lock.yaml @@ -8,7 +8,7 @@ on: jobs: update: - name: Update + name: Run update runs-on: ubuntu-latest permissions: @@ -17,52 +17,13 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - name: Install Nix uses: DeterminateSystems/nix-installer-action@ab6bcb2d5af0e904d04aea750e2089e9dc4cbfdd # v13 - - name: Set Git user info - run: | - git config user.name 'github-actions[bot]' - git config user.email 'github-actions[bot]@users.noreply.github.com' - - - name: Create new branch - id: branch - run: | - branch="update-flake-lock" - - echo "branch=$branch" >> "$GITHUB_OUTPUT" - git switch -c "$branch" - - - name: Update flake inputs - run: | - nix flake update \ - --commit-lock-file \ - --commit-lockfile-summary "chore: update flake inputs" - - - name: Update test flake inputs - run: | - pushd ./test - - nix flake update \ - --commit-lock-file \ - --commit-lockfile-summary "chore: update test flake inputs" - - popd - - - name: Make PR if needed - env: - GH_TOKEN: ${{ github.token }} - BRANCH: ${{ steps.branch.outputs.branch }} - run: | - if ! git diff --color=always --exit-code origin/main; then - git fetch origin "$BRANCH" || true - git push --force-with-lease -u origin "$BRANCH" - - gh pr create \ - --base main \ - --head "$BRANCH" \ - --title "chore: update flake inputs" \ - --fill - fi + - name: Update flake.lock & make PR + uses: DeterminateSystems/update-flake-lock@db4ee38117a597ea8df8f7f75a187dd65093eade # v23 + with: + commit-msg: "chore: update flake inputs" + pr-title: "chore: update flake inputs" |
