From 18bb8392f9c9991b4c4a00e0fc35a4885095923e Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Thu, 11 Sep 2025 22:45:09 +1000 Subject: [PATCH] fix --- .github/workflows/fix_hashes.yml | 38 -------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/fix_hashes.yml diff --git a/.github/workflows/fix_hashes.yml b/.github/workflows/fix_hashes.yml deleted file mode 100644 index 7cce317..0000000 --- a/.github/workflows/fix_hashes.yml +++ /dev/null @@ -1,38 +0,0 @@ -on: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - permissions: - id-token: "read" - contents: "write" - steps: - - uses: actions/checkout@v5 - - - uses: DeterminateSystems/determinate-nix-action@v3 - - - uses: DeterminateSystems/flakehub-cache-action@main - - - run: nix flake check -L - - - name: Fix hash mismatches - if: failure() && github.event_name == 'pull_request' - id: fix-hashes - run: | - git stash --include-untracked - git fetch --depth=1 origin "$GITHUB_HEAD_REF" - git checkout -B "$GITHUB_HEAD_REF" "${{ github.event.pull_request.head.sha }}" - - determinate-nixd fix hashes --auto-apply - - if ! git diff --quiet; then - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add --update --ignore-removal . - git commit -m "[dependabot skip] Automatically fix Nix hashes" - git push origin "$GITHUB_HEAD_REF" - fi - - git checkout - - git stash pop || true