浏览代码

[ci] handle deprecations for May 2023

Rudy Ges 2 年之前
父节点
当前提交
95a4c4de0c
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 4 4
      .github/workflows/main.yml
  2. 4 4
      extra/github-actions/workflows/main.yml

+ 4 - 4
.github/workflows/main.yml

@@ -327,7 +327,7 @@ jobs:
       - name: Extract branch name
         id: extract_branch
         shell: bash
-        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
+        run: echo "{branch}={echo ${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
 
       - name: Build xmldoc
         run: |
@@ -520,7 +520,7 @@ jobs:
       FORCE_COLOR: 1
     steps:
       - name: Login to GitHub Container Registry
-        uses: docker/login-action@v1
+        uses: docker/login-action@v2
         with:
           registry: ghcr.io
           username: ${{ github.actor }}
@@ -531,7 +531,7 @@ jobs:
 
       - name: Set up QEMU
         id: qemu
-        uses: docker/setup-qemu-action@v1
+        uses: docker/setup-qemu-action@v2
         with:
             image: tonistiigi/binfmt:latest
             platforms: all
@@ -955,7 +955,7 @@ jobs:
       - name: Extract branch name
         id: extract_branch
         shell: bash
-        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
+        run: echo "{branch}={echo ${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
 
       - name: Upload binaries
         shell: bash

+ 4 - 4
extra/github-actions/workflows/main.yml

@@ -103,7 +103,7 @@ jobs:
       - name: Extract branch name
         id: extract_branch
         shell: bash
-        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
+        run: echo "{branch}={echo ${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
 
       - name: Build xmldoc
         run: |
@@ -264,7 +264,7 @@ jobs:
       FORCE_COLOR: 1
     steps:
       - name: Login to GitHub Container Registry
-        uses: docker/login-action@v1
+        uses: docker/login-action@v2
         with:
           registry: ghcr.io
           username: ${{ github.actor }}
@@ -275,7 +275,7 @@ jobs:
 
       - name: Set up QEMU
         id: qemu
-        uses: docker/setup-qemu-action@v1
+        uses: docker/setup-qemu-action@v2
         with:
             image: tonistiigi/binfmt:latest
             platforms: all
@@ -428,7 +428,7 @@ jobs:
       - name: Extract branch name
         id: extract_branch
         shell: bash
-        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
+        run: echo "{branch}={echo ${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
 
       - name: Upload binaries
         shell: bash