forked from jmug/stoatchat
ci: do not interpolate directly into release workflows (#545)
This commit is contained in:
3
.github/workflows/release-please.yml
vendored
3
.github/workflows/release-please.yml
vendored
@@ -45,8 +45,9 @@ jobs:
|
|||||||
if: ${{ steps.rp.outputs.prs_created == 'true' || steps.rp.outputs.prs_updated == 'true' }}
|
if: ${{ steps.rp.outputs.prs_created == 'true' || steps.rp.outputs.prs_updated == 'true' }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
RP_PR_OUTPUT_JSON: ${{ steps.rp.outputs.prs }}
|
||||||
run: |
|
run: |
|
||||||
PR_NUMBER=$(echo '${{ steps.rp.outputs.prs }}' | jq -r '.[0].number')
|
PR_NUMBER=$(echo "$RP_PR_OUTPUT_JSON" | jq -r '.[0].number')
|
||||||
gh pr checkout "$PR_NUMBER"
|
gh pr checkout "$PR_NUMBER"
|
||||||
|
|
||||||
cargo update -w
|
cargo update -w
|
||||||
|
|||||||
8
.github/workflows/release-webhook.yml
vendored
8
.github/workflows/release-webhook.yml
vendored
@@ -12,8 +12,12 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Send release notification webhook
|
- name: Send release notification webhook
|
||||||
|
env:
|
||||||
|
TAG_NAME: ${{ github.event.release.tag_name }}
|
||||||
|
REPOSITORY: ${{ github.repository }}
|
||||||
|
WEBHOOK_URL: ${{ secrets.STOAT_WEBHOOK_UPDATES_URL }}
|
||||||
run: |
|
run: |
|
||||||
RELEASE_URL="https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}"
|
RELEASE_URL="https://github.com/${REPOSITORY}/releases/tag/${TAG_NAME}"
|
||||||
curl -X POST "${{ secrets.STOAT_WEBHOOK_UPDATES_URL }}" \
|
curl -X POST "$WEBHOOK_URL" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"content\": \"$RELEASE_URL\"}"
|
-d "{\"content\": \"$RELEASE_URL\"}"
|
||||||
|
|||||||
Reference in New Issue
Block a user