I have a workflow and build, test, lint, and deploy jobs.
build, test, lint jobs are executed on push or pull.
but the deploy job should be executed manually.
currently, I’m using the ‘if’ statement for manual deploy but this executes all other jobs again.
I don’t want to redundant test for just the deployment.
How can I just execute only the deploy job when I want?
If I use a separate workflow, how can I know all test jobs succeed before deploy?
# this workflow executed when manual execution
if: github.event_name == ‘workflow_dispatch’
needs: [test, lint]