File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
actions/slack-notification Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 3434 . ${{ github.action_path }}/../common/slack.sh
3535
3636 cat <<'JSON' | slack_format_success_message \
37- "${{ inputs.release_tag }}" "${{ inputs.url_prefix }}" "$footer" \
37+ "${{ inputs.release_tag }}" "${{ inputs.url_prefix }}" "$footer" "${{ inputs.env }}" \
3838 | curl -s --fail-with-body -d@- "${{ inputs.SLACK_WEB_HOOK_URL }}"
3939 ${{ inputs.packages_json }}
4040 JSON
Original file line number Diff line number Diff line change @@ -41,11 +41,14 @@ jobs:
4141 exit 1
4242 fi
4343 if [ "${{ inputs.release_type }}" = "public" ]; then
44+ url_prefix="https://packages.redis.io/deb/pool"
4445 env_name="production"
4546 else
47+ url_prefix="https://redis-test-package-repository.s3.us-east-2.amazonaws.com/deb/pool"
4648 env_name="staging"
4749 fi
4850 echo "env_name=$env_name" >> $GITHUB_OUTPUT
51+ echo "url_prefix=$url_prefix" >> $GITHUB_OUTPUT
4952
5053 - name : Ensure Release Branch
5154 id : ensure-branch
@@ -108,7 +111,7 @@ jobs:
108111 with :
109112 slack_func : slack_format_success_message
110113 release_tag : ${{ github.event.inputs.release_tag }}
111- url_prefix : https://redis-test-package-repository.s3.us-east-2.amazonaws.com/deb/pool
114+ url_prefix : ${{ steps.validate-inputs.outputs.url_prefix }}
112115 env : ${{ steps.validate-inputs.outputs.env_name }}
113116 packages_json : ${{ steps.upload.outputs.packages_json }}
114117 SLACK_WEB_HOOK_URL : ${{ secrets.SLACK_WEB_HOOK_URL }}
You can’t perform that action at this time.
0 commit comments