You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a workflow is triggered only by pushes to a specific branch, any checks for this branch within the jobs are redundant and should be removed. For example:
on:
push:
branches:
- mainjobs:
deploy:
steps:
- name: Deployif: github.ref == 'refs/heads/main' # Unnecessary, this condition will always be true
Use Case:
During refactoring, it is easy to leave such unnecessary checks in the workflow.
The text was updated successfully, but these errors were encountered:
If a workflow is triggered only by pushes to a specific branch, any checks for this branch within the jobs are redundant and should be removed. For example:
Use Case:
During refactoring, it is easy to leave such unnecessary checks in the workflow.
The text was updated successfully, but these errors were encountered: