Skip to content

Commit c9392e2

Browse files
authored
Merge pull request #259 from opendatacube/release-action
Try github.event_name
2 parents e28baad + b159714 commit c9392e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [master]
88
types: [synchronize, opened, reopened, ready_for_review]
99
release:
10-
types: [created]
10+
types: [created, edited]
1111

1212
env:
1313
ORG: opendatacube
@@ -88,7 +88,7 @@ jobs:
8888
# if not use a pseudo tag based on current tag,
8989
# number of commits since last tag and git hash
9090
- name: Push to DockerHub (master branch or tagged release only)
91-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/tags/'
91+
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
9292
run: |
9393
# figure out extra tag
9494
git fetch --prune --unshallow 2> /dev/null || true

0 commit comments

Comments
 (0)