Skip to content

Commit

Permalink
use ephemeral branch
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Nov 24, 2024
1 parent 657c3ac commit 3c4283d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "Github Action Bot"
echo "New version is ${API_VERSION}"
git checkout -b api_version
BRANCH_NAME="update-api-${GITHUB_RUN_ID}"
echo "Checking new branch ${BRANCH_NAME}"
git checkout -b $BRANCH_NAME
mv parameters.json sparc/sparc_json_api/
git add sparc/sparc_json_api/parameters.json
git commit -m "Add new json api version ${API_VERSION}"
git push --set-upstream origin api_version
git push --force --set-upstream origin api_version
body_msg=""
body_msg="${body_msg}## Automated JSON API Update\n"
body_msg="${body_msg}Hello! This is an automatic pull request to merge the new JSON API version **${API_VERSION}** into the master branch.\n\n"
Expand Down

0 comments on commit 3c4283d

Please sign in to comment.