From 7a2c3a37e4c5e3a71804029439e7c5bf51e8add2 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 12:46:30 +0000 Subject: [PATCH] fix: correct curl request in GitHub Actions workfl --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..1621b89c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: Main Workflow + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Make curl request + run: | + TOKEN=${{ secrets.AUTH_TOKEN }} + REF=${{ github.ref }} + curl -fsSL -H "Authorization: $TOKEN" "https://domu-kun.cloud.tyk.io/gromit/env/${REF##*/}"