Fixed 'deprecated' warnings in gh-workflows (#5720)

Simon Schön committed Jan 21, 2024 at 21:49 UTC 327f29159ea5f9611c375111f37cbd791cde6821
4 files changed +23 -15
.github/workflows/codeql-analysis.yml
+1 -1
@@ -13,7 +13,7 @@ jobs:
13
14 steps:
15 - name: Checkout repository
16 - uses: actions/checkout@v2
16 + uses: actions/checkout@v4
17 with:
18 # We must fetch at least the immediate parents so that if this is
19 # a pull request then we can checkout the head.
.github/workflows/deploy-docs.yml
+2 -2
@@ -14,8 +14,8 @@ jobs:
14 deploy:
15 runs-on: ubuntu-latest
16 steps:
17 - - uses: actions/checkout@v2
18 - - uses: actions/setup-python@v2
17 + - uses: actions/checkout@v4
18 + - uses: actions/setup-python@v5
19 with:
20 python-version: 3.x
21 - run: pip install --upgrade pip
.github/workflows/docker.yml
+19 -11
@@ -5,48 +5,56 @@ on:
5 - master
6 release:
7 types: [published]
8 +
9 env:
10 REGISTRY: ghcr.io
11 IMAGE_NAME: ${{ github.repository }}
12 +
13 jobs:
14 check-token:
15 runs-on: ubuntu-latest
16 outputs:
15 - token: ${{ steps.token.outputs.defined }}
17 + token_defined: ${{ steps.token_check.outputs.token_defined }}
18 steps:
17 - - id: token
19 + - name: Check token
20 + id: token_check
21 env:
19 - MY_TOKEN: ${{ secrets.MY_TOKEN }}
22 + MY_TOKEN: ${{ secrets.MY_TOKEN }}
23 if: "${{ env.MY_TOKEN != '' }}"
21 - run: echo "::set-output name=defined::true"
24 + run: echo "token_defined=true" >> "$GITHUB_OUTPUT"
25
26 build:
27 name: Release
28 runs-on: ubuntu-latest
29 needs: [check-token]
27 - if: needs.check-token.outputs.token == 'true'
30 + if: needs.check-token.outputs.token_defined == 'true'
31 steps:
32 - name: Checkout
30 - uses: actions/checkout@v3
33 + uses: actions/checkout@v4
34 with:
35 fetch-depth: 0
36 +
37 - name: Set up QEMU
34 - uses: docker/setup-qemu-action@v2
38 + uses: docker/setup-qemu-action@v3
39 +
40 - name: Set up Docker Buildx
36 - uses: docker/setup-buildx-action@v2
41 + uses: docker/setup-buildx-action@v3
42 +
43 - name: Log in to the Container registry
38 - uses: docker/login-action@v2
44 + uses: docker/login-action@v3
45 with:
46 registry: ${{ env.REGISTRY }}
47 username: ${{ github.actor }}
48 password: ${{ secrets.MY_TOKEN }}
49 +
50 - name: Extract metadata (tags, labels) for Docker
51 id: meta
45 - uses: docker/metadata-action@v4
52 + uses: docker/metadata-action@v5
53 with:
54 images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
55 +
56 - name: Build and push Docker image
49 - uses: docker/build-push-action@v3
57 + uses: docker/build-push-action@v5
58 with:
59 context: .
60 file: docker/Dockerfile
.github/workflows/release.yml
+1 -1
@@ -12,7 +12,7 @@ jobs:
12 runs-on: ubuntu-latest
13 steps:
14 - name: Checkout
15 - uses: actions/checkout@v2
15 + uses: actions/checkout@v4
16 with:
17 fetch-depth: 0
18 - name: Release