Skip to content

Commit

Permalink
Merge pull request #259 from opendatacube/release-action
Browse files Browse the repository at this point in the history
Try github.event_name
  • Loading branch information
pindge authored May 1, 2020
2 parents e28baad + b159714 commit c9392e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [master]
types: [synchronize, opened, reopened, ready_for_review]
release:
types: [created]
types: [created, edited]

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

0 comments on commit c9392e2

Please sign in to comment.