diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml index 19c0045..6f00939 100644 --- a/.github/workflows/snap.yaml +++ b/.github/workflows/snap.yaml @@ -11,7 +11,7 @@ on: # The event that triggers the workflow jobs: build: # Only run this job if the branch name contains "release" or a commit is created on master branch and the branch name contains "release" or manually triggered - if: contains(github.head_ref, 'release') || (github.event_name == 'push' && github.ref == 'refs/heads/master' && contains(github.head_ref, 'release')) || github.event_name == 'workflow_dispatch' + if: contains(github.head_ref, 'release') || contains(github.ref, 'release') || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest outputs: snap-file: ${{ steps.build-snap.outputs.snap }} @@ -40,8 +40,8 @@ jobs: path: ${{ steps.build-snap.outputs.snap }} publish: - # Only run this job when a commit is created on master branch and the branch name contains 'release' or manually triggered - if: (github.event_name == 'push' && github.ref == 'refs/heads/master' && contains(github.head_ref, 'release')) || github.event_name == 'workflow_dispatch' + # Only run this job if the branch name contains "release" or a commit is created on master branch and the branch name contains "release" or manually triggered + if: contains(github.head_ref, 'release') || contains(github.ref, 'release') || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest needs: build # Wait for build job to be done steps: