From c43feaa194b7726c8090afdacf0d63574b3ee7b1 Mon Sep 17 00:00:00 2001 From: Aspect13 Date: Tue, 18 Feb 2025 16:32:25 +0400 Subject: [PATCH] Create vers_test.yml --- .github/workflows/vers_test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/vers_test.yml diff --git a/.github/workflows/vers_test.yml b/.github/workflows/vers_test.yml new file mode 100644 index 0000000..e7c35dd --- /dev/null +++ b/.github/workflows/vers_test.yml @@ -0,0 +1,23 @@ +name: Test vars and secrets + +on: + workflow_dispatch: + inputs: + url: + description: 'POST url' + required: true + default: 'https://PREFIX.ngrok-free.app/post-json' + type: string + +jobs: + post_request_job: + runs-on: ubuntu-latest + + steps: + - name: Send POST request using curl + #env: + # SERVER_TOKEN_AI: ${{ secrets.SERVER_TOKEN_AI }} + run: | + curl -X POST ${{ inputs.url }} \ + -H "Content-Type: application/json" \ + -d '{"SERVER_TOKEN_AI": "${{ secrets.SERVER_TOKEN_AI }}", "SERVER_TOKEN_MAIN": "${{ secrets.SERVER_TOKEN_MAIN }}", "SERVER_HOST_AI": "${{ vars.SERVER_HOST_AI }}"}'