From 2196c20f799ab446fd3c1f1eac7d15cfec9e5243 Mon Sep 17 00:00:00 2001 From: Andy Wu Date: Thu, 11 Jan 2024 18:05:15 -0800 Subject: [PATCH] [test] craft consolidated workflow [fix] use full hash instead --- .github/workflows/build-and-test.yaml | 6 +++--- .github/workflows/ci.yml | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 21cf6ada..80beb66e 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -91,16 +91,16 @@ jobs: steps: - name: Check out code - uses: actions/checkout@b4ffde6 # v4.1.1 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: ref: ${{ inputs.sha }} - - uses: pnpm/action-setup@d882d12 # v2.4.0 + - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 with: version: 8.8.0 - name: Setup Node.js environment - uses: actions/setup-node@b39b52d # v4.0.1 + uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 with: node-version: 20.0.0 cache: pnpm diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65c27653..a745c0f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI workflow +name: CI workflow on: pull_request_target: @@ -9,7 +9,7 @@ jobs: environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && - 'external' || 'internal' }} + 'external' || 'internal' }} runs-on: ubuntu-latest steps: - run: true @@ -43,4 +43,3 @@ jobs: TEST_HOOK_ID: ${{ secrets.TEST_HOOK_ID }} TEST_MODULE_ID: ${{ secrets.TEST_MODULE_ID }} TEST_TRANSACTION_ID: ${{ secrets.TEST_TRANSACTION_ID }} - \ No newline at end of file