File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 74
74
with Path(os.environ["GITHUB_OUTPUT"]).open('a') as f:
75
75
f.write(f"version={get_project_version()}\n")
76
76
77
+ get-contributor-info :
78
+ name : Get PR info
79
+ runs-on : ubuntu-latest
80
+ needs : release-file-check
81
+ if : ${{ needs.release-file-check.outputs.status == 'OK' }}
82
+
83
+ outputs :
84
+ contributor-username : ${{ steps.get-info.outputs.contributor-username }}
85
+ pr-number : ${{ steps.get-info.outputs.pr-number }}
86
+
87
+ steps :
88
+ - name : Get PR info
89
+ id : get-info
90
+ uses : strawberry-graphql/get-pr-info-action@v6
91
+
77
92
update-release-on-github :
78
93
name : Update release on github
79
94
runs-on : ubuntu-latest
85
100
python-version : ' 3.9'
86
101
- name : Install dependencies
87
102
run : pip install httpx
88
- - name : Send tweet
103
+ - name : Update Github Release
89
104
shell : python
90
105
run : |
91
106
import os
99
114
100
115
101
116
response = httpx.get(
102
- url=f"https://api.github.com/repos/strawberry-graphql/strawberry/releases/tags/{tag}",
117
+ url=f"https://api.github.com/repos/strawberry-graphql/strawberry-sqlalchemy /releases/tags/{tag}",
103
118
headers={
104
119
"Accept": "application/vnd.github.v3+json",
105
120
},
@@ -117,7 +132,7 @@ jobs:
117
132
updated_release_body = f"{release_body}\n\n{release_footer}"
118
133
119
134
response = httpx.patch(
120
- url=f"https://api.github.com/repos/strawberry-graphql/strawberry/releases/{release_id}",
135
+ url=f"https://api.github.com/repos/strawberry-graphql/strawberry-sqlalchemy /releases/{release_id}",
121
136
json={"body": updated_release_body},
122
137
headers={
123
138
"Accept": "application/vnd.github.v3+json",
You can’t perform that action at this time.
0 commit comments