Skip to content

Commit

Permalink
Merge pull request #521 from djarecka/ci/reproschemapy_pr
Browse files Browse the repository at this point in the history
changing description, reverting changes to the branch name
  • Loading branch information
djarecka authored Jun 20, 2024
2 parents 7551ffe + 51b0997 commit 2c21267
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/push_reproschema_py.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Pull Request in Another Repository
name: Create Pull Request to reproschema-py
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
cp releases/${{ inputs.version }}/reproschema.jsonld reproschema-py/reproschema.jsonld
cd reproschema-py
git checkout -b new_release
git checkout -b release_${{ inputs.version }}
# TODO: change to pydantic model
# TODO: a script to change CONTEXTFILE_URL can be added
git add reproschema.jsonld
Expand All @@ -39,12 +39,12 @@ jobs:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
cd reproschema-py
git push origin new_release
git push origin release_${{ inputs.version }}
- name: Create pull request
env:
TARGET_REPO: repronim/reproschema-py
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
curl -X POST -H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
-d '{"title":"Automated PR: Add new version of the model: ${{ inputs.version }}", "head":"new_release", "base":"main"}' \
-d '{"title":"Automated PR: Add new version of the model: ${{ inputs.version }}", "head":"release_${{ inputs.version }}", "base":"main"}' \
https://api.github.com/repos/$TARGET_REPO/pulls

0 comments on commit 2c21267

Please sign in to comment.