Skip to content

Commit 3b0e416

Browse files
committed
ci: smaller opinionated refactoring
1 parent 3ffe6d7 commit 3b0e416

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,20 @@ jobs:
4646
with:
4747
python-version: "3.8"
4848

49-
- name: store whether we are publishing the chart
49+
- name: Decide to publish or not
5050
id: publishing
5151
shell: python
52-
env:
53-
REPO: ${{ github.repository }}
54-
EVENT: ${{ github.event_name }}
55-
REF: ${{ github.event.ref }}
5652
run: |
5753
import os
58-
repo = os.environ["REPO"]
59-
event = os.environ["EVENT"]
60-
ref = os.environ["REF"]
54+
repo = "${{ github.repository }}"
55+
event = "${{ github.event_name }}"
56+
ref = "${{ github.event.ref }}"
6157
publishing = ""
6258
if (
6359
repo == "jupyterhub/zero-to-jupyterhub-k8s"
6460
and event == "push"
6561
and (
66-
# any tag
6762
ref.startswith("refs/tags/")
68-
# or default branch
6963
or ref == "refs/heads/main"
7064
)
7165
):

0 commit comments

Comments
 (0)