Skip to content

Commit

Permalink
Add Slack integration
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Jan 8, 2025
1 parent ef77eb2 commit d53325c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ permissions:
contents: write
pull-requests: write

env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

jobs:
makepr:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -46,10 +49,23 @@ jobs:
git checkout ${{ env.VERSION }}
cd -
- name: Create Pull Request
id: making-pr
uses: peter-evans/create-pull-request@v7
with:
commit-message: "Update UI to ${{ env.VERSION }}"
title: "ci: Update submodule to version ${{ env.VERSION }}"
body: "This is an automatic PR that updates the submodule to version `${{ env.VERSION }}`."
base: develop
branch: ci-update-${{ env.VERSION }}
branch: ci-update-${{ env.VERSION }}
- name: Notify release through Slack
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
text: "*VEDA UI Release ${{ env.VERSION }}*: ${{ job.status }}\n Preview link: ${{ steps.making-pr.outputs.pull-request-url }}"
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "*VEDA UI Release ${{ env.VERSION }}*: ${{ job.status }}\n Preview link: ${{ steps.making-pr.outputs.pull-request-url }}"

0 comments on commit d53325c

Please sign in to comment.