Skip to content

Commit a9af107

Browse files
committed
Fix GH Workflow for command: nix flake update
1 parent 071e781 commit a9af107

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/update-flake-dependencies.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ jobs:
1515
- uses: DeterminateSystems/magic-nix-cache-action@main
1616
- name: update flake.lock
1717
run: nix flake update
18+
- name: Define Unique COMMIT_BRANCH by Timestamp
19+
run: |
20+
TIMESTAMP=$(date +'%Y-%m-%d-%H%M%S')
21+
echo "COMMIT_BRANCH=automation/update-flake-dependencies-$TIMESTAMP" >> $GITHUB_ENV
1822
- name: Create signed commit with flake.lock changes
1923
env:
2024
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2125
FILE_TO_COMMIT: flake.lock
22-
COMMIT_BRANCH: automation/update-flake-dependencies
2326
COMMIT_MESSAGE: "chore(nix): Update Flake dependencies"
2427
run: |
2528
# make sure something actually changed first, if not, no updates required

0 commit comments

Comments
 (0)