Skip to content

Commit

Permalink
[test] craft consolidated workflow
Browse files Browse the repository at this point in the history
[fix] use full hash instead
  • Loading branch information
AndyBoWu committed Jan 12, 2024
1 parent c1539e3 commit 2196c20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI workflow
name: CI workflow

on:
pull_request_target:
Expand All @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 2196c20

Please sign in to comment.