File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -46,26 +46,20 @@ jobs:
46
46
with :
47
47
python-version : " 3.8"
48
48
49
- - name : store whether we are publishing the chart
49
+ - name : Decide to publish or not
50
50
id : publishing
51
51
shell : python
52
- env :
53
- REPO : ${{ github.repository }}
54
- EVENT : ${{ github.event_name }}
55
- REF : ${{ github.event.ref }}
56
52
run : |
57
53
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 }}"
61
57
publishing = ""
62
58
if (
63
59
repo == "jupyterhub/zero-to-jupyterhub-k8s"
64
60
and event == "push"
65
61
and (
66
- # any tag
67
62
ref.startswith("refs/tags/")
68
- # or default branch
69
63
or ref == "refs/heads/main"
70
64
)
71
65
):
You can’t perform that action at this time.
0 commit comments