Skip to content

Commit 4e7dcc6

Browse files
authored
Merge pull request #3068 from consideRatio/pr/ci-set-output-ubuntu2204-py311
ci: fix deprecation of set-output and use ubuntu 22.04 and py311
2 parents 2d8da1c + 3813395 commit 4e7dcc6

File tree

7 files changed

+15
-20
lines changed

7 files changed

+15
-20
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# ref: https://hub.docker.com/orgs/jupyterhub
3535

3636
publish:
37-
runs-on: ubuntu-20.04
37+
runs-on: ubuntu-22.04
3838
steps:
3939
- uses: actions/checkout@v3
4040
with:
@@ -44,34 +44,29 @@ jobs:
4444

4545
- uses: actions/setup-python@v4
4646
with:
47-
python-version: "3.8"
47+
python-version: "3.11"
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
):
7266
publishing = "true"
7367
print("Publishing chart")
74-
print(f"::set-output name=publishing::{publishing}")
68+
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
69+
f.write(f"publishing={publishing}\n")
7570
7671
- name: Set up QEMU (for docker buildx)
7772
uses: docker/setup-qemu-action@v2

.github/workflows/release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
create-release:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
permissions:
1414
contents: write
1515
steps:

.github/workflows/support-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
action:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- uses: dessant/support-requests@v3
1616
with:

.github/workflows/test-docker-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# - https://github.com/docker/build-push-action/blob/v2.3.0/docs/advanced/local-registry.md
3030
# - https://github.com/docker/build-push-action/blob/v2.3.0/docs/advanced/multi-platform.md
3131
build_images:
32-
runs-on: ubuntu-20.04
32+
runs-on: ubuntu-22.04
3333
steps:
3434
- uses: actions/checkout@v3
3535
with:

.github/workflows/test-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525

2626
jobs:
2727
linkcheck:
28-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-22.04
2929
steps:
3030
- uses: actions/checkout@v3
3131
with:

.github/workflows/vuln-scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on:
3232
jobs:
3333
trivy_image_scan:
3434
if: github.repository == 'jupyterhub/zero-to-jupyterhub-k8s'
35-
runs-on: ubuntu-20.04
35+
runs-on: ubuntu-22.04
3636
environment: watch-dependencies
3737

3838
strategy:

.github/workflows/watch-dependencies.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
update-image-dependencies:
3333
# Don't run this job on forks
3434
if: github.repository == 'jupyterhub/zero-to-jupyterhub-k8s'
35-
runs-on: ubuntu-20.04
35+
runs-on: ubuntu-22.04
3636
environment: watch-dependencies
3737

3838
strategy:
@@ -202,7 +202,7 @@ jobs:
202202
# these dependencies every day is too much noise.
203203
#
204204
if: github.repository == 'jupyterhub/zero-to-jupyterhub-k8s' && github.event_name != 'schedule'
205-
runs-on: ubuntu-latest
205+
runs-on: ubuntu-22.04
206206
environment: watch-dependencies
207207

208208
steps:

0 commit comments

Comments
 (0)