Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 18a6a66

Browse files
authored
Fix/url masking (#129)
fix: mask URL in slack
1 parent 408bd3d commit 18a6a66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ jobs:
9292
runs-on: ubuntu-latest
9393
steps:
9494
- name: publish latest release
95+
env:
96+
SLACK_URL: ${{ secrets.SLACK_URL }}
9597
run: |
9698
curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/aws-samples/aws-analytics-reference-architecture/releases/latest > release.json
9799
VERSION=$( jq -r '.name' release.json )
98100
CONTENT=$( jq -r '.body' release.json )
99101
jq -n --arg version "$VERSION" --arg content "$CONTENT" '{"release-version": $version, "release-content": $content}' > body.json
100-
curl --location --request POST 'https://hooks.slack.com/workflows/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' \
102+
curl --location --request POST $SLACK_URL \
101103
--header 'Content-Type: application/json' --data @body.json

0 commit comments

Comments
 (0)