Skip to content

chore(deps): update dependency scala to v3.6.1 #666

chore(deps): update dependency scala to v3.6.1

chore(deps): update dependency scala to v3.6.1 #666

Workflow file for this run

name: Update deps hash
on:
pull_request_target:
branches:
- main
jobs:
update-hash:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.owner.login == 'scala-steward' }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
with:
name: cbley
extraPullNames: pre-commit-hooks
- name: Update fixed output hash
run: |
outputHash=$( nix eval --raw '.#scalals.dependencies.outputHash' )
sed -i'' -e "s,$outputHash,," flake.nix
! output=$( nix build --no-link --print-build-logs '.#scalals.dependencies' 2>&1 )
if [[ "$output" != *'error: hash mismatch in fixed-output derivation'* ]]; then
echo "build problem: $output" >&2 ; exit 1
fi
git restore flake.nix
got=$( sed -ne 's,.*got: *\([^ ]*\),\1,p' <<< "$output" )
sed -i'' -e "s,$outputHash,$got," flake.nix
git diff
- name: Push changes
uses: devops-infra/action-commit-push@b7427f14518901401fd1c7095aecee2e54815390 # v0.9.1
with:
amend: true
force: true
github_token: "${{ secrets.PR_TOKEN }}"