File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1313 env :
1414 DISCORD_WEBHOOK : ${{ secrets.DISCORD_WEBHOOK }}
1515 run : |
16+ COMMIT_COUNT=$(echo '${{ toJson(github.event.commits) }}' | jq length)
1617 curl -H "Content-Type: application/json" \
1718 -X POST \
1819 -d "{
2526 \"url\": \"https://github.com/${{ github.actor }}\",
2627 \"icon_url\": \"https://github.com/${{ github.actor }}.png\"
2728 },
28- \"title\": \"[${{ github.repository }}] ${{ toJson(github.event.commits) } } New Commits!\",
29+ \"title\": \"[${{ github.repository }}] ${COMMIT_COUNT } New Commits!\",
2930 \"description\": \"${{ github.event.head_commit.message }} ${GITHUB_SHA::7} [here](https://github.com/${{ github.repository }}/commit/${{ github.sha }})\",
3031 \"url\": \"https://github.com/${{ github.repository }}/commit/${{ github.sha }}\",
3132 \"color\": 3447003,
You can’t perform that action at this time.
0 commit comments