Skip to content

Commit

Permalink
feat: add test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
key-hui-mentem committed Jan 11, 2023
1 parent 6912354 commit e22f74f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cd-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ jobs:
env:
version_label: ${{ github.event.release.tag_name }}
version_description: ${{ github.SHA }}
run: sh ./.github/workflows/slack.sh
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
run: sh ./.github/workflows/slack.sh version_control $version_label $slack_webhook
shell: bash
6 changes: 5 additions & 1 deletion .github/workflows/slack.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#!/usr/bin/env bash
curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/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
app=$1
version=$2
slack_url=$3
text="*$app* | $version is released."
curl -X POST -H 'Content-type: application/json' --data "{'text':'$text'}" $slack_url
3 changes: 3 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version_label=v1.0.0
slack_webhook=https://hooks.slack.com/services/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
sh ./.github/workflows/slack.sh version_control $version_label $slack_webhook

0 comments on commit e22f74f

Please sign in to comment.