move var to secrets and remove debug
All checks were successful
mkdocs build / build (push) Successful in 4s
mkdocs build / notification (push) Successful in 2s

This commit is contained in:
Ludovic Cartier 2024-09-03 14:33:26 +02:00
parent d95c30e7ef
commit 0420e634bb

View File

@ -26,22 +26,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- name: create payload var
run: |
PAYLOAD=$(cat << EOF
payload={
\"username\": \"gitea-bot\",
\"icon_url\": \"https://icinga.com/wp-content/uploads/2017/08/icon-core.png\",
\"text\": \"mkdocs build has just finished !\"
}
EOF
)
id: my_payload
- name: debug
run: |
echo "${{ vars.PAYLOAD }}"
echo "${{ vars.WEBHOOK_URL }}"
- name: curl webhook
run: |
curl --connect-timeout 30 --max-time 60 -s -S -X POST --data-urlencode "${{ vars.PAYLOAD }}" "${{ vars.WEBHOOK_URL }}"
curl --connect-timeout 30 --max-time 60 -s -S -X POST --data-urlencode "${{ vars.PAYLOAD }}" "${{ secrets.WEBHOOK_URL }}"