Skip to content

Commit

Permalink
api action
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Jan 16, 2024
1 parent 64ab47c commit 7b10867
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/update_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 7b10867

Please sign in to comment.