Checklist (Please check before submitting)
Is your feature request related to a problem? Please describe.
The deploy jobs in the documentation workflow run even when the criteria for deployment are not met. This is not a problem since the git push step, which does the actual deployment does not run.
However, this does spin up an extra VM that then gets shut down immediately. Skipping the job can shave a couple of seconds from the full CI suite.
|
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} |
Describe the solution you'd like
Move the if condition up one level from the deploy step to the deploy job.
Describe alternatives you've considered
Leave as is.
Additional context
None
Requester Info
Full name and company/organization if applicable
Checklist (Please check before submitting)
Is your feature request related to a problem? Please describe.
The deploy jobs in the documentation workflow run even when the criteria for deployment are not met. This is not a problem since the git push step, which does the actual deployment does not run.
However, this does spin up an extra VM that then gets shut down immediately. Skipping the job can shave a couple of seconds from the full CI suite.
cFS/.github/workflows/build-documentation.yml
Line 271 in 4ad0677
Describe the solution you'd like
Move the if condition up one level from the deploy step to the deploy job.
Describe alternatives you've considered
Leave as is.
Additional context
None
Requester Info
Full name and company/organization if applicable