ci: update github actions
MODIFY
.github/workflows/docker.yml
.github/workflows/docker.yml
@@ -30,13 +30,13 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 0
# https://github.com/docker/build-push-action
- name: Build Docker image
- uses: docker/build-push-action@v2
+ uses: docker/build-push-action@v3
with:
context: .
tags: jupyter/repo2docker:pr

MODIFY
.github/workflows/release.yml
.github/workflows/release.yml
@@ -29,10 +29,9 @@ jobs:
build-n-publish:
runs-on: ubuntu-20.04
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- - name: "Setup Python 3.8"
- uses: actions/setup-python@v2
+ - uses: actions/setup-python@v4
with:
python-version: "3.8"
@@ -50,7 +49,7 @@ jobs:
# all previous steps always run in order to exercise them
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
- uses: pypa/gh-action-pypi-publish@master
+ uses: pypa/gh-action-pypi-publish@v1.5.1
with:
password: ${{ secrets.PYPI_PASSWORD }}
@@ -79,7 +78,7 @@ jobs:
echo "Publishing to $REGISTRY"
# versioneer requires the full git history for non-tags
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
with:
fetch-depth: 0
@@ -88,10 +87,10 @@ jobs:
# https://github.com/docker/build-push-action/blob/v2.4.0/docs/advanced/multi-platform.md
- name: Set up QEMU (for docker buildx)
- uses: docker/setup-qemu-action@25f0500ff22e406f7191a2a8ba8cda16901ca018
+ uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx (for multi-arch builds)
- uses: docker/setup-buildx-action@2a4b53665e15ce7d7049afb11ff1f70ff1610609
+ uses: docker/setup-buildx-action@v2
with:
# Allows pushing to registry on localhost:5000
driver-opts: network=host
@@ -118,7 +117,7 @@ jobs:
echo "TAGS=$TAGS" >> $GITHUB_ENV
- name: Build and push repo2docker
- uses: docker/build-push-action@e1b7f96249f2e4c8e4ac1519b9608c0d48944a1f
+ uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64

MODIFY
.github/workflows/test.yml
.github/workflows/test.yml
@@ -43,21 +43,15 @@ jobs:
lint:
runs-on: ubuntu-20.04
steps:
- # Action Repo: https://github.com/actions/checkout
- - name: "Checkout repo"
- uses: actions/checkout@v2
- with:
- fetch-depth: 0
+ - uses: actions/checkout@v3
- # Action Repo: https://github.com/actions/setup-python
- - name: "Setup Python"
- uses: actions/setup-python@v2
+ - uses: actions/setup-python@v4
with:
python-version: "3.8"
# Action Repo: https://github.com/actions/cache
- name: "Cache pip dependencies"
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }}
@@ -100,17 +94,15 @@ jobs:
repo_type: venv
steps:
- - name: "Checkout repo"
- uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- - name: "Setup Python"
- uses: actions/setup-python@v2
+ - uses: actions/setup-python@v4
with:
- python-version: ${{ matrix.python_version }}
+ python-version: "${{ matrix.python_version }}"
# Action Repo: https://github.com/actions/cache
- name: "Cache pip dependencies"
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }}

ci: update github actions