Skip to content

Commit

Permalink
Merge pull request #74 from deriv-com/niloofar/FEQ-1692/slack-notific…
Browse files Browse the repository at this point in the history
…ation

Fixing Notification Display in Slack Channels with PR
  • Loading branch information
niloofar-deriv authored Feb 8, 2024
2 parents 7f78c48 + 964c853 commit 4468c1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
outputs:
RELEASE_VERSION: ${{ steps.get_version.outputs.version }}
RELEASE_VERSION: ${{ steps.extract_version.outputs.RELEASE_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -43,9 +43,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}
run: npx semantic-release
- name: Get Version
id: get_version
uses: battila7/get-version-action@v2
- name: Extract version
id: extract_version
run: echo "RELEASE_VERSION=${version}" >> $GITHUB_OUTPUT
- name: Trigger Quill Icons Park release
if: success()
env:
Expand All @@ -72,9 +72,9 @@ jobs:
id: create_slack_message
run: |
if [ "${{ env.WORKFLOW_CONCLUSION }}" == "success" ]; then
echo "MESSAGE=${{ env.RELEASE_TYPE }} Release succeeded for @deriv/quill-icons with version ${{ needs.release.outputs.RELEASE_VERSION }}" >> $GITHUB_OUTPUT
echo "MESSAGE=${{ env.RELEASE_TYPE }} Release succeeded for @deriv/quill-icons with version ${{ needs.release.outputs.RELEASE_VERSION }} 🥳" >> $GITHUB_OUTPUT
else
echo "MESSAGE=${{ env.RELEASE_TYPE }} Release failed for @deriv/quill-icons with version ${{ needs.release.outputs.RELEASE_VERSION }}" >> $GITHUB_OUTPUT
echo "MESSAGE=${{ env.RELEASE_TYPE }} Release failed for @deriv/quill-icons with version ${{ needs.release.outputs.RELEASE_VERSION }} 🤨" >> $GITHUB_OUTPUT
fi
- name: Send Slack Notification
uses: './.github/actions/send_slack_notifications'
Expand Down

0 comments on commit 4468c1b

Please sign in to comment.