Skip to content

Commit 5c47627

Browse files
committed
yml
1 parent a6f0dcb commit 5c47627

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main-github-action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ jobs:
7575

7676
# Create Release
7777
- name: Create New Release
78-
if: success() && github.ref == 'refs/heads/master' # tests passed and sanity check on master branch
78+
if: > # push only, tests passed, and sanity check on master branch
79+
success()
80+
&& github.event_name == 'push'
81+
&& github.ref == 'refs/heads/master'
7982
run: |
8083
VERSION="v.$(date +'%Y.%m.%d.%H.%M.%S')-$(git rev-parse --short HEAD)"
8184
echo "Creating release with version $VERSION"

0 commit comments

Comments
 (0)