Skip to content

Commit b03c74b

Browse files
committed
ci: always build rolldown from source on deps/upstream-update branch
1 parent ede70ae commit b03c74b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/actions/build-upstream/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }}
1717
run: |
1818
pnpm --filter @rolldown/pluginutils build
19-
if [ "${{ inputs.build-rolldown-native }}" = "true" ] || [ "${{ github.ref_name }}" = "deps/upstream-update" ]; then
19+
if [ "${{ inputs.build-rolldown-native }}" = "true" ] || [ "${{ github.head_ref || github.ref_name }}" = "deps/upstream-update" ]; then
2020
pnpm --filter rolldown build-binding:release --target ${{ inputs.target }} --use-napi-cross
2121
fi
2222
pnpm --filter rolldown build-node
@@ -33,7 +33,7 @@ runs:
3333
if: ${{ inputs.target == 'aarch64-unknown-linux-gnu' }}
3434
run: |
3535
pnpm --filter @rolldown/pluginutils build
36-
if [ "${{ inputs.build-rolldown-native }}" = "true" ] || [ "${{ github.ref_name }}" = "deps/upstream-update" ]; then
36+
if [ "${{ inputs.build-rolldown-native }}" = "true" ] || [ "${{ github.head_ref || github.ref_name }}" = "deps/upstream-update" ]; then
3737
pnpm --filter rolldown build-binding:release --target ${{ inputs.target }} --use-napi-cross
3838
fi
3939
pnpm --filter rolldown build-node
@@ -50,7 +50,7 @@ runs:
5050
if: ${{ !contains(inputs.target, 'linux') }}
5151
run: |
5252
pnpm --filter @rolldown/pluginutils build
53-
if [ "${{ inputs.build-rolldown-native }}" = "true" ] || [ "${{ github.ref_name }}" = "deps/upstream-update" ]; then
53+
if [ "${{ inputs.build-rolldown-native }}" = "true" ] || [ "${{ github.head_ref || github.ref_name }}" = "deps/upstream-update" ]; then
5454
pnpm --filter rolldown build-binding:release --target ${{ inputs.target }}
5555
fi
5656
pnpm --filter rolldown build-node

0 commit comments

Comments
 (0)