Skip to content

Commit 1702349

Browse files
committed
fixup! ci: custom update-flake with signed commits
1 parent 1be6300 commit 1702349

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/update-flake-lock.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

17-
- name: Install Nix
18-
uses: DeterminateSystems/nix-installer-action@main
17+
- uses: cachix/install-nix-action@v31
18+
with:
19+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
1920

2021
- uses: cachix/cachix-action@v15
2122
with:
@@ -62,13 +63,11 @@ jobs:
6263
PR_EXISTS=$(gh pr list --head "$BRANCH" --json number -q '.[0].number')
6364
6465
if [ -z "$PR_EXISTS" ]; then
65-
# git fetch
66-
# git reset --hard "origin/$BRANCH"
6766
gh pr create \
6867
--title "chore: update flake.lock" \
6968
--body "" \
7069
--base "$(git rev-parse HEAD)" \
71-
--head "$BRANCH"
70+
--head "origin/$BRANCH"
7271
else
7372
echo "Pull request already exists: #$PR_EXISTS"
7473
fi

0 commit comments

Comments
 (0)