Closed bmoon4 closed 2 years ago
if: ${{ (github.ref_name == 'main' && github.event_name != 'pull_request') || (github.ref_name != 'main' && github.event_name != 'push' && github.event_name != 'pull_request') }}
should work
github.event_name = schedule
will do CDgithub.event_name = push
will doCDgithub.event_name = pull_request
will NOT trigger CDgithub.event_name = push
will NOT trigger CDgithub.event_name = pull_request
will NOT trigger CD
and i dont think we do scheduled deployment
for feature branches... do we???
Check this one : https://github.com/cardano-sos/ruggable-token-bot/actions/runs/2625718777
if: ${{ (github.event_name != 'push') && (github.event_name != 'pull_request') }}