cardano-sos / reusable-workflow

0 stars 0 forks source link

10 skipping cd when it is not main #11

Closed bmoon4 closed 2 years ago

bmoon4 commented 2 years ago

Check this one : https://github.com/cardano-sos/ruggable-token-bot/actions/runs/2625718777

if: ${{ (github.event_name != 'push') && (github.event_name != 'pull_request') }}

image image

bmoon4 commented 2 years ago

Update

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

Main : ${{ (github.ref_name == 'main' && github.event_name != 'pull_request')

Non-main: (github.ref_name != 'main' && github.event_name != 'push' && github.event_name != 'pull_request') }}`