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
64ab47c
commit 7b10867
Showing
1 changed file
with
6 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -45,10 +45,15 @@ jobs: | |
- name: Create Pull Request | ||
if: ${{ env.UPDATE_NEEDED }} == 'true' | ||
run: | | ||
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 | ||
mv parameters.json sparc/sparc_json_api/ | ||
gh pr create -B master --title "[PR Bot] New JSON API version ${API_VERSION}" \ | ||
git add sparc/sparc_json_api/parameters.json | ||
git commit -m "Add new json api version ${API_VERSION}" | ||
git push --set-upstream origin ${{ github.run_id }} | ||
gh pr create --base master --title "[PR Bot] New JSON API version ${API_VERSION}" \ | ||
--head ${{ github.run_id }} --body "Merge new JSON API version ${API_VERSION} into master" -R alchem0x2a/SPARC-X-API | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|