Skip to content

Commit a0a4eb2

Browse files
committed
fixup! ci: custom update-flake with sign commits
1 parent 0aaf4d9 commit a0a4eb2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66

77
jobs:
88
lockfile:
9+
env:
10+
BRANCH: chore/update-flake-lock
11+
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: Checkout repository
@@ -19,6 +22,11 @@ jobs:
1922
name: kidibox
2023
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
2124

25+
- name: Create or update branch
26+
run: |
27+
git checkout -b $BRANCH
28+
git push -u origin $BRANCH --force
29+
2230
- name: Update flake.lock
2331
run: nix flake update
2432

@@ -34,9 +42,6 @@ jobs:
3442
FILES="${FILES} -F files[][path]=$value -F files[][contents]=$(base64 -w0 $value)"
3543
done
3644
37-
git checkout -b $BRANCH
38-
git push -u origin $BRANCH --force
39-
4045
gh api graphql \
4146
-F githubRepository=$GITHUB_REPOSITORY \
4247
-F branchName=$BRANCH \
@@ -48,7 +53,6 @@ jobs:
4853
gh pr create --fill --base main --head $BRANCH
4954
env:
5055
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
BRANCH: chore/update-flake-lock
5256

5357
# - name: Commit changes
5458
# env:

0 commit comments

Comments
 (0)