Skip to content

Commit 2c21267

Browse files
authored
Merge pull request #521 from djarecka/ci/reproschemapy_pr
changing description, reverting changes to the branch name
2 parents 7551ffe + 51b0997 commit 2c21267

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/push_reproschema_py.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create Pull Request in Another Repository
1+
name: Create Pull Request to reproschema-py
22
on:
33
workflow_dispatch:
44
inputs:
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
cp releases/${{ inputs.version }}/reproschema.jsonld reproschema-py/reproschema.jsonld
2929
cd reproschema-py
30-
git checkout -b new_release
30+
git checkout -b release_${{ inputs.version }}
3131
# TODO: change to pydantic model
3232
# TODO: a script to change CONTEXTFILE_URL can be added
3333
git add reproschema.jsonld
@@ -39,12 +39,12 @@ jobs:
3939
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
4040
run: |
4141
cd reproschema-py
42-
git push origin new_release
42+
git push origin release_${{ inputs.version }}
4343
- name: Create pull request
4444
env:
4545
TARGET_REPO: repronim/reproschema-py
4646
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
4747
run: |
4848
curl -X POST -H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
49-
-d '{"title":"Automated PR: Add new version of the model: ${{ inputs.version }}", "head":"new_release", "base":"main"}' \
49+
-d '{"title":"Automated PR: Add new version of the model: ${{ inputs.version }}", "head":"release_${{ inputs.version }}", "base":"main"}' \
5050
https://api.github.com/repos/$TARGET_REPO/pulls

0 commit comments

Comments
 (0)