Skip to content

Commit 185f19d

Browse files
committed
head_ref -> base_ref
As no PR will be made on main (the condition for `head_ref` will always return false). Replaced with `base_ref` to check if the PR is against main instead.
1 parent 95bcd68 commit 185f19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
npm-package:
3636
needs: [ conan-package ]
37-
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'NP-'))) || (github.event_name == 'pull_request' && github.head_ref == 'main') }}
37+
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'NP-'))) || (github.event_name == 'pull_request' && github.base_ref == 'main') }}
3838
uses: ultimaker/cura-workflows/.github/workflows/npm-package.yml@main
3939
with:
4040
package_version_full: ${{ needs.conan-package.outputs.package_version_full }}

0 commit comments

Comments
 (0)