Skip to content

Commit c3bae9a

Browse files
committed
fixup! ci: custom update-flake with sign commits
1 parent d376b69 commit c3bae9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ jobs:
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
FILE_TO_COMMIT: flake.lock
29-
DESTINATION_BRANCH: chore/update-flake-lock
29+
DESTINATION_BRANCH: chore-update-flake-lock
3030
run: |
3131
export TODAY=$(date -u '+%Y-%m-%d')
3232
export MESSAGE="chore: update $FILE_TO_COMMIT for $TODAY"
3333
export SHA=$(git rev-parse $DESTINATION_BRANCH:$FILE_TO_COMMIT)
3434
export CONTENT=$(base64 -i $FILE_TO_COMMIT)
35+
git checkout -b "$DESTINATION_BRANCH"
36+
# git push -u origin "$DESTINATION_BRANCH"
3537
gh api --method PUT /repos/:owner/:repo/contents/$FILE_TO_COMMIT \
3638
--field message="$MESSAGE" \
3739
--field content="$CONTENT" \
3840
--field encoding="base64" \
3941
--field branch="$DESTINATION_BRANCH" \
4042
--field sha="$SHA"
41-
git checkout -b "$DESTINATION_BRANCH"
42-
git push -u origin "$DESTINATION_BRANCH"
4343
gh pr create --title "Update $FILE_TO_COMMIT" --body "This PR updates $FILE_TO_COMMIT" --head $DESTINATION_BRANCH --base main
4444
4545
# - name: Update flake.lock

0 commit comments

Comments
 (0)