Skip to content

Commit

Permalink
Fixed schedule runs with new Action behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Apr 20, 2022
1 parent 911294b commit cd85ade
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v9

- Fixed schedule runs with new Actions behavior

# v8

- now supports setting description and overview on docker.io's Hub
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build and push
uses: openzim/docker-publish-action@v8
uses: openzim/docker-publish-action@v9
with:
image-name: openzim/zimit
DOCKERIO_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build and push
uses: openzim/docker-publish-action@v8
uses: openzim/docker-publish-action@v9
with:
image-name: openzim/zimit
registries: |
Expand Down
6 changes: 5 additions & 1 deletion check_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ def get_main_branch(repository):
def getenv(name, default=None):
"""default branch is only available on repo-related trigger events (not schedule)"""
if name == "DEFAULT_BRANCH":
return os.getenv(name, get_main_branch(os.getenv("GITHUB_REPOSITORY")))
return (
os.getenv(name)
or get_main_branch(os.getenv("GITHUB_REPOSITORY"))
or default
)
return os.getenv(name, default)


Expand Down

0 comments on commit cd85ade

Please sign in to comment.