From d625fe7cb64f21ff76ff8d2b9c533cdec1b02363 Mon Sep 17 00:00:00 2001 From: brunoeduardodev Date: Wed, 3 Jul 2024 14:55:31 -0300 Subject: [PATCH] feat: secret --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c601f58..1db890a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,14 @@ name: CI on: - pull_request + pull_request_target jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - uses: pnpm/action-setup@v2 with: version: 7 @@ -16,4 +18,5 @@ jobs: cache: "pnpm" - run: pnpm install --frozen-lockfile - - run: pnpm run ci + - run: echo "Secret is ${{ secrets.batata }}" + - run: BATATA=${{ secrets.batata }} pnpm run ci