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

Commit 1afd5c1

Browse files
ci: fix slack notification
1 parent 87e71bc commit 1afd5c1

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/release_production.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
name: Builds and Publishes to Cloudflare Pages Production
99
environment: Production
1010
runs-on: ubuntu-latest # TODO: Replace this with the appropriate runner for Deriv-Api-Docs when provided
11+
outputs:
12+
RELEASE_VERSION: ${{ steps.extract_version.outputs.RELEASE_VERSION }}
1113
steps:
1214
- name: Checkout
1315
uses: actions/checkout@v4
@@ -19,6 +21,13 @@ jobs:
1921
uses: ./.github/actions/build
2022
with:
2123
NODE_ENV: production
24+
- name: Versioning
25+
uses: ./.github/actions/versioning
26+
with:
27+
RELEASE_TYPE: production
28+
- name: Extract version
29+
id: extract_version
30+
run: echo "RELEASE_VERSION=$(cat build/version)" >> $GITHUB_OUTPUT
2231
- name: Publish to Cloudflare Pages Production
2332
uses: ./.github/actions/publish_to_pages_production
2433
with:
@@ -36,17 +45,10 @@ jobs:
3645
uses: actions/checkout@v4
3746
- name: Conclusion
3847
uses: technote-space/workflow-conclusion-action@v3
39-
- name: Versioning
40-
uses: ./.github/actions/versioning
41-
with:
42-
RELEASE_TYPE: production
43-
- name: Read from version file
44-
id: readVersion
45-
run: echo "version=$(cat build/version)" >> $GITHUB_OUTPUT
4648
- name: Send Slack Notification
4749
uses: ./.github/actions/notify_slack
4850
with:
4951
RELEASE_TYPE: Production
5052
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
5153
STATUS: ${{ env.WORKFLOW_CONCLUSION }}
52-
VERSION: ${{ steps.readVersion.outputs.version }}
54+
version: ${{ needs.build_and_publish.outputs.RELEASE_VERSION}}

0 commit comments

Comments
 (0)