Skip to content

Commit

Permalink
Merge pull request #5 from ho-nl/feature/updatedMessage
Browse files Browse the repository at this point in the history
Feature/updated message
  • Loading branch information
wimvdputten authored Sep 25, 2024
2 parents e7ed4c2 + dca9fcf commit 265dacc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/notify-slack-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${{ inputs.message && inputs.message || github.event.repository.name }} - ${{ github.workflow }}* \n <${{ github.event.repository.url }}/commit/${{ github.sha }} | ${{ env.cut_sha }}> (<${{ github.event.repository.url }}/actions/runs/${{ github.run_id }} | open>)"
"text": "*${{ inputs.message && inputs.message || github.event.repository.name }} - ${{ github.workflow }}* \n <${{ github.event.repository.html_url }}/commit/${{ github.sha }} | ${{ env.cut_sha }}> (<${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }} | open>)"
}
},
{
"type": "context",
"elements": [
{
"type": "plain_text",
"text": "${{ inputs.result == 'success' && 'Success' || 'Failure' }} after ${{ env.parsed_time }}",
"text": "${{ inputs.result == 'success' && 'Success' || inputs.result == 'cancelled' && 'Cancelled' || 'Failure' }} after ${{ env.parsed_time }}",
"emoji": true
}
]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notify-slack-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${{ inputs.message && inputs.message || github.event.repository.name }} - ${{ github.workflow }}* 🚀 \n <${{ github.event.repository.url }}/commit/${{ github.sha }} | ${{ env.cut_sha }}> (<${{ github.event.repository.url }}/actions/runs/${{ github.run_id }} | open>)"
"text": "*${{ inputs.message && inputs.message || github.event.repository.name }} - ${{ github.workflow }}* 🚀 \n <${{ github.event.repository.html_url }}/commit/${{ github.sha }} | ${{ env.cut_sha }}> (<${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }} | open>)"
}
},
{
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
jobs:
notify-start:
name: Notify release start
uses: ho-nl/release-slack-action/.github/workflows/notify-slack-start.yml@main
uses: ./.github/workflows/notify-slack-start.yml
secrets:
slackToken: ${{ secrets.SLACK_BOT_RELEASE_TOKEN}}
with:
Expand All @@ -29,13 +29,13 @@ jobs:
notify-end:
if: always()
name: Notify release end
needs: [ notify-start, activate-pm2 ]
uses: ho-nl/release-slack-action/.github/workflows/notify-slack-end.yml@main
needs: [ notify-start, release ]
uses: ./.github/workflows/notify-slack-end.yml
secrets:
slackToken: ${{ secrets.SLACK_BOT_RELEASE_TOKEN}}
with:
time: ${{ needs.notify-start.outputs.time }}
result: ${{ needs.activate-pm2.result }}
result: ${{ needs.release.result }}
channel: 12gobiking-test
message: Test
notifyOnlyOnFailure: false

0 comments on commit 265dacc

Please sign in to comment.