Skip to content

Commit

Permalink
Fix a bug with branch name not displaying when it's default branch (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mondlicht1 committed Mar 18, 2024
1 parent c77c30e commit 4731a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notify-slack/workflow-status/action.yml
Expand Up @@ -32,7 +32,7 @@ runs:
"channel": "${{ inputs.slack-channel }}",
"attachments": [
{
"title": "[${{ github.repository }}] ${{ github.workflow }} ${{ inputs.workflow-status }} on ${{ github.head_ref }}",
"title": "[${{ github.repository }}] ${{ github.workflow }} ${{ inputs.workflow-status }} on ${{ github.head_ref || github.ref_name }}",
"text": "*<https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha || github.sha }}|Commit>* *<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Workflow>*",
"color": "'$color'"
}
Expand Down

0 comments on commit 4731a1d

Please sign in to comment.