From 0420e634bbe56363de0a5a97498a077a1e542a7a Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Tue, 3 Sep 2024 14:33:26 +0200 Subject: [PATCH] move var to secrets and remove debug --- .gitea/workflows/build.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b47d7be..e7453b7 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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 }}"