Skip to content

Commit

Permalink
chore(ci): release-url
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant committed Dec 26, 2023
1 parent e5fabf3 commit 69e2824
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,18 @@ jobs:
commit: ${{ github.head_ref || github.ref_name }}
tag: ${{ steps.commit-id.outputs.id }}
allowUpdates: true
- name: Get PR Number
- name: Get release url
id: release-url
uses: frabert/replace-string-action@v2
with:
pattern: "^(.+?\/releases\/)tag(\/.+?)$"
string: ${{ steps.release.outputs.html_url }}
replace-with: "$1download$2/zxing-wasm-${{ steps.commit-id.outputs.id }}.tgz"
- name: Get PR number
id: get-pr-number
uses: mgaitan/gha-get-pr-number@main
- name: Build Finish Dispatch
uses: peter-evans/repository-dispatch@v2
with:
event-type: build-finish
client-payload: '{ "release-url": "${{steps.release.outputs.html_url}}/zxing-wasm-${{ steps.commit-id.outputs.id }}.tgz", "pr-number": ${{ steps.get-pr-number.outputs.number }} }'
client-payload: '{ "release-url": "${{steps.release-url.outputs.replaced}}", "pr-number": ${{ steps.get-pr-number.outputs.number }} }'

0 comments on commit 69e2824

Please sign in to comment.