Skip to content

Commit

Permalink
fix: adding branch creation to workflow (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykie authored Sep 12, 2024
1 parent a7f8bdb commit 9971175
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
export MESSAGE="chore: regenerate $FILE_TO_COMMIT for $TODAY"
export SHA=$( git rev-parse $DESTINATION_BRANCH:$FILE_TO_COMMIT )
export CONTENT=$( base64 -i $FILE_TO_COMMIT )
gh api --method POST /repos/:owner/:repo/git/refs \
--field ref="refs/head/changelog-update-${{ github.run_id }}" \
--field sha="$SHA"
gh api --method PUT /repos/:owner/:repo/contents/$FILE_TO_COMMIT \
--field message="$MESSAGE" \
--field content="$CONTENT" \
Expand Down

0 comments on commit 9971175

Please sign in to comment.