Skip to content

Commit 01d503a

Browse files
committed
fix: create the branch on the remote before trying to commit to it via REST API
1 parent 39d777c commit 01d503a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
COMMIT_BRANCH: automation/update-flake-dependencies
2626
COMMIT_MESSAGE: "chore(nix): Update Flake dependencies"
2727
run: |
28+
# create the branch on the remote
29+
git branch "$COMMIT_BRANCH"
30+
git push -u origin "$COMMIT_BRANCH"
2831
# commit via the GitHub API so we get automatic commit signing
2932
gh api --method PUT /repos/1Password/shell-plugins/contents/$FILE_TO_COMMIT \
3033
--field message="$COMMIT_MESSAGE" \

0 commit comments

Comments
 (0)