File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments