From 5e43be27a4bca26ca3dc0746ab18a7c30f65cd8a Mon Sep 17 00:00:00 2001 From: Pietro di Caprio Date: Mon, 22 Jan 2024 16:38:33 +0100 Subject: [PATCH] Set BETTERSTACK_TOKEN in actions --- .github/workflows/benchmark.yml | 1 + .github/workflows/build.yml | 1 + .github/workflows/lint.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 932f0da0..ac49735d 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -17,6 +17,7 @@ jobs: check-latest: true - name: Benchmark run: | + BETTERSTACK_TOKEN=${{ secrets.BETTERSTACK_TOKEN }} curl -sL https://github.com/${GITHUB_REPOSITORY}/raw/master/README.md | \ awk '{if($0 ~ "// go test -v"){a=1;b=1};if($0 ~ "```" && b=1){b=0};if (a&&b) {print}}' | \ tee log_test.go diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 428519b2..0887d43e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ jobs: steps: - name: Build run: | + BETTERSTACK_TOKEN=${{ secrets.BETTERSTACK_TOKEN }} git clone --depth=1 https://github.com/${GITHUB_REPOSITORY} cd $(basename ${GITHUB_REPOSITORY}) go build -v -race diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 822cbc96..6692e6e8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,6 +11,7 @@ jobs: steps: - name: Lint run: | + BETTERSTACK_TOKEN=${{ secrets.BETTERSTACK_TOKEN }} curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.51.2 git clone --depth=1 https://github.com/${GITHUB_REPOSITORY} cd $(basename ${GITHUB_REPOSITORY})