Skip to content

Commit d62b356

Browse files
authored
Add missing dependency for release workflow. (#35)
1 parent 8187109 commit d62b356

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@ jobs:
7474
with Path(os.environ["GITHUB_OUTPUT"]).open('a') as f:
7575
f.write(f"version={get_project_version()}\n")
7676
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+
7792
update-release-on-github:
7893
name: Update release on github
7994
runs-on: ubuntu-latest
@@ -85,7 +100,7 @@ jobs:
85100
python-version: '3.9'
86101
- name: Install dependencies
87102
run: pip install httpx
88-
- name: Send tweet
103+
- name: Update Github Release
89104
shell: python
90105
run: |
91106
import os
@@ -99,7 +114,7 @@ jobs:
99114
100115
101116
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}",
103118
headers={
104119
"Accept": "application/vnd.github.v3+json",
105120
},
@@ -117,7 +132,7 @@ jobs:
117132
updated_release_body = f"{release_body}\n\n{release_footer}"
118133
119134
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}",
121136
json={"body": updated_release_body},
122137
headers={
123138
"Accept": "application/vnd.github.v3+json",

0 commit comments

Comments
 (0)