fix update and open slack messages #225
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Slack Notifications | |
on: | |
pull_request: | |
types: [opened, synchronize, closed] | |
jobs: | |
slack_notification: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm install | |
- name: Build the project | |
run: npm run build | |
- name: Run tests | |
run: npm run test | |
- name: Send Slack notification | |
uses: ./ | |
with: | |
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | |
slack-channel: ${{ secrets.SLACK_CHANNEL }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Output commit data | |
run: echo "Commits Data ${{ steps.slack_notification_step.outputs.updateMessage }}" | |