Skip to content

Commit 3d9ef41

Browse files
authored
Merge pull request #40 from Ultimaker/NP-874_patch_if_condition
Trigger NPM package on PR against main: head_ref -> base_ref
2 parents 95bcd68 + 185f19d commit 3d9ef41

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)