forked from SPARC-X/SPARC-X-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
657c3ac
commit 3c4283d
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|