Skip to content

Commit ac37b60

Browse files
committed
Fix action to run local code instead of npm package
- Use bun run ${{ github.action_path }}/index.ts instead of bunx fairsplice@latest - Add bun install step to install dependencies - This allows testing the action from the current repo with uses: ./
1 parent bc18180 commit ac37b60

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ runs:
4141
- name: Setup Bun
4242
uses: oven-sh/setup-bun@v2
4343

44+
- name: Install dependencies
45+
shell: bash
46+
run: cd ${{ github.action_path }} && bun install --frozen-lockfile
47+
4448
- name: Restore timings cache
4549
uses: actions/cache/restore@v4
4650
with:
@@ -55,7 +59,7 @@ runs:
5559
shell: bash
5660
run: |
5761
# Run fairsplice split
58-
bunx fairsplice@latest split \
62+
bun run ${{ github.action_path }}/index.ts split \
5963
--timings-file "${{ inputs.timings-file }}" \
6064
--pattern "${{ inputs.pattern }}" \
6165
--total "${{ inputs.total }}" \
@@ -76,7 +80,7 @@ runs:
7680
if: inputs.command == 'merge'
7781
shell: bash
7882
run: |
79-
bunx fairsplice@latest merge \
83+
bun run ${{ github.action_path }}/index.ts merge \
8084
--timings-file "${{ inputs.timings-file }}" \
8185
--prefix "${{ inputs.prefix }}"
8286

0 commit comments

Comments
 (0)