Skip to content

Commit cc0c2fc

Browse files
committed
Fix url prefix for prod, add env
1 parent 2eeff0e commit cc0c2fc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/actions/slack-notification/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runs:
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

.github/workflows/release_publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)