Update GitHub Actions workflow to trigger on completion of version bump

- Changed the workflow trigger from push events on the main branches to a workflow_run event that activates upon the completion of the "Version Bump" workflow.
- This adjustment streamlines the CI/CD process by ensuring that packaging and publishing only occur after version updates are finalized.

These changes enhance the automation and reliability of the deployment pipeline.
This commit is contained in:
Steven Enamakel
2026-02-02 05:50:00 +05:30
parent 148d3f108f
commit 0e96d28933
+6 -9
View File
@@ -9,15 +9,12 @@
name: Package and publish
on:
push:
branches: ["master","main"]
workflow_dispatch:
inputs:
forceRelease:
description: "Force release build even without publishing"
required: false
type: boolean
default: false
workflow_run:
workflows: ["Version Bump"]
types:
- completed
branches:
- main
env:
IS_ON_MASTER: ${{ github.ref == 'refs/heads/master' }}