Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul-Biju committed May 27, 2024
1 parent 6dd8342 commit e803fdd
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,10 @@ jobs:
name: ${{ matrix.reportName }}
path: |
liberty-tools-intellij/build/reports/
# Send Slack notification
# - name: Send Slack notification
## if: always()
## env:
## SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
## run: |
## curl -X POST -H 'Content-type: application/json' --data '{"text":"Build completed for branch: ${{ github.ref }} with status: ${{ job.status }}"}' $SLACK_WEBHOOK_URL
- name: Slack Notification
if: always() # Ensure the notification is sent regardless of job statuses
run: |
curl -X POST -H 'Content-type: application/json' --data '{
"text": "Workflow ${{ github.workflow }} triggered by branch ${{ github.ref }}. PR: ${{ github.event.pull_request.html_url }}. Build results: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}. Status: ${{ job.status }}"
}' $SLACK_WEBHOOK_URL
curl -X POST -H 'Content-type: application/json' --data '{"text": "Workflow ${{ github.workflow }} triggered by branch ${{ github.ref }}. PR: ${{ github.event.pull_request.html_url || 'N/A' }}. Build results: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}. Status: ${{ job.status }}"}' $SLACK_WEBHOOK_URL
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit e803fdd

Please sign in to comment.