move var to secrets and remove debug
This commit is contained in:
		| @@ -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 }}" | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user