move var to secrets and remove debug
This commit is contained in:
parent
d95c30e7ef
commit
0420e634bb
@ -26,22 +26,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
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
|
- name: curl webhook
|
||||||
run: |
|
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 }}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user