Skip to content

Commit 372e96f

Browse files
committed
Patchright Release [Use actions/create-release]
1 parent e9d7b39 commit 372e96f

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/patchright_workflow.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,15 @@ jobs:
8383
8484
- name: Create Empty Versioning Release
8585
if: steps.version_check.outputs.proceed == 'true'
86-
run: |
87-
$(curl -s -X POST \
88-
-H "Authorization: token $GITHUB_TOKEN" \
89-
-H "Content-Type: application/json" \
90-
-d "{\"tag_name\": \"$playwright_version\", \"name\": \"$playwright_version\", \"body\": \"This is an automatic deployment in response to a new release of [microsoft/playwright](https://github.com/microsoft/playwright-python).\n This Release is only used for Versioning.\", \"draft\": false, \"prerelease\": false}" \
91-
"https://api.github.com/repos/$REPO/releases")
86+
uses: actions/create-release@v1
87+
with:
88+
tag_name: ${{ env.playwright_version }}
89+
release_name: ${{ env.playwright_version }}
90+
body: |
91+
This is an automatic deployment in response to a new release of [microsoft/playwright](https://github.com/microsoft/playwright-python).
92+
This Release is only used for Versioning.
93+
draft: false
94+
prerelease: false
9295

9396
- name: Publish Patchright-Python Package
9497
if: steps.version_check.outputs.proceed == 'true'

0 commit comments

Comments
 (0)