Skip to content

Commit ccde319

Browse files
committed
ci: nix hash
1 parent 0ed7fac commit ccde319

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/update-nix-hashes.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
with:
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030
fetch-depth: 0
31+
ref: ${{ github.head_ref || github.ref_name }}
3132

3233
- name: Setup Nix
3334
uses: DeterminateSystems/nix-installer-action@v20
@@ -79,6 +80,7 @@ jobs:
7980
git commit -m "Update Nix flake.lock and hashes"
8081
8182
BRANCH="${TARGET_BRANCH:-${GITHUB_REF_NAME}}"
83+
git pull --rebase origin "$BRANCH"
8284
git push origin HEAD:"$BRANCH"
8385
8486
summarize "committed $(git rev-parse --short HEAD)"

0 commit comments

Comments
 (0)