Skip to content

Commit

Permalink
Restrict npm-package workflow trigger branches.
Browse files Browse the repository at this point in the history
Update the npm-package workflow condition to trigger only on 'push' events for branches 'main', branches containing 'NP-', or branch '5.10'. This ensures the workflow runs only for relevant branches, enhancing efficiency and control over the deployment process.

NP-637
  • Loading branch information
jellespijker committed Dec 9, 2024
1 parent fa08533 commit 0a5ad05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

npm-package:
needs: [ conan-package ]
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || contains(github.ref_name, 'NP-') || github.ref_name == '5.10') }}
uses: ultimaker/cura-workflows/.github/workflows/npm-package.yml@NP-637_conan_v2_wasm
with:
package_version_full: ${{ needs.conan-package.outputs.package_version_full }}
Expand Down

0 comments on commit 0a5ad05

Please sign in to comment.