Skip to content

Commit

Permalink
feat(ci): refactor build-examples label step
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed May 23, 2024
1 parent 96b05ac commit a569b2a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
CHUNKS: ${{ steps.chunkstep.outputs.CHUNKS }}

steps:
- name: Get PR labels
id: pr-labels
uses: joerick/[email protected]
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
Expand All @@ -58,7 +55,7 @@ jobs:

- name: Split Into Chunks
id: chunkstep
run: CHUNKS=6 BASE_REF=${{ github.base_ref }} BUILD_ALL_EXAMPLES=${{ (contains(steps.pr-labels.outputs.labels, ' build-examples ') || github.event_name == 'schedule' ) && 'true' || 'false' }} node ./.github/workflows/scripts/build-example-chunks.js
run: CHUNKS=6 BASE_REF=${{ github.base_ref }} BUILD_ALL_EXAMPLES=${{ (contains(github.event.pull_request.labels.*.name, 'build-examples') || github.event_name == 'schedule' ) && 'true' || 'false' }} node ./.github/workflows/scripts/build-example-chunks.js

build-chunk:
runs-on: ubuntu-latest
Expand All @@ -72,9 +69,6 @@ jobs:
matrix:
chunk: ${{ fromJson(needs.chunks.outputs.CHUNKS) }}
steps:
- name: Get PR labels
id: pr-labels
uses: joerick/[email protected]
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
Expand Down

0 comments on commit a569b2a

Please sign in to comment.