File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Create Pull Request in Another Repository
1
+ name : Create Pull Request to reproschema-py
2
2
on :
3
3
workflow_dispatch :
4
4
inputs :
27
27
run : |
28
28
cp releases/${{ inputs.version }}/reproschema.jsonld reproschema-py/reproschema.jsonld
29
29
cd reproschema-py
30
- git checkout -b new_release
30
+ git checkout -b release_${{ inputs.version }}
31
31
# TODO: change to pydantic model
32
32
# TODO: a script to change CONTEXTFILE_URL can be added
33
33
git add reproschema.jsonld
@@ -39,12 +39,12 @@ jobs:
39
39
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
40
40
run : |
41
41
cd reproschema-py
42
- git push origin new_release
42
+ git push origin release_${{ inputs.version }}
43
43
- name : Create pull request
44
44
env :
45
45
TARGET_REPO : repronim/reproschema-py
46
46
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
47
47
run : |
48
48
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"}' \
50
50
https://api.github.com/repos/$TARGET_REPO/pulls
You can’t perform that action at this time.
0 commit comments