Procházet zdrojové kódy

github: Use latest supported actions and rewrite usage of obsolete set-output command

Keir Fraser před 2 roky
rodič
revize
db12862cc6
2 změnil soubory, kde provedl 9 přidání a 9 odebrání
  1. 3 3
      .github/workflows/ci.yml
  2. 6 6
      .github/workflows/release.yml

+ 3 - 3
.github/workflows/ci.yml

@@ -8,12 +8,12 @@ jobs:
     runs-on: ubuntu-20.04
     steps:
 
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
 
     - name: Set environment variables
       id: vars
       run: |
-        echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
+        echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
 
     - name: Dependency packages (apt)
       run: |
@@ -50,7 +50,7 @@ jobs:
         mv $P-$V.zip _cidist/
 
     - name: Upload artifacts
-      uses: actions/upload-artifact@v2
+      uses: actions/upload-artifact@v3
       with:
         name: greaseweazle-firmware.ci.${{ steps.vars.outputs.sha_short }}
         path: _cidist

+ 6 - 6
.github/workflows/release.yml

@@ -11,12 +11,12 @@ jobs:
     runs-on: ubuntu-20.04
     steps:
 
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
 
     - name: Set environment variables
       id: vars
       run: |
-        echo "::set-output name=ver::$(echo ${{ github.ref }} | sed -e's#.*/v##')"
+        echo "ver=$(echo ${{ github.ref }} | sed -e's#.*/v##')" >> $GITHUB_OUTPUT
 
     - name: Dependency packages (apt)
       run: |
@@ -32,7 +32,7 @@ jobs:
         mv out/*.zip .
 
     - name: Upload artifacts
-      uses: actions/upload-artifact@v2
+      uses: actions/upload-artifact@v3
       with:
         name: greaseweazle-firmware.ci.${{ steps.vars.outputs.ver }}
         path: greaseweazle-firmware-${{ steps.vars.outputs.ver }}.zip
@@ -42,15 +42,15 @@ jobs:
     runs-on: ubuntu-20.04
     steps:
 
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
 
     - name: Set environment variables
       id: vars
       run: |
-        echo "::set-output name=ver::$(echo ${{ github.ref }} | sed -e's#.*/v##')"
+        echo "ver=$(echo ${{ github.ref }} | sed -e's#.*/v##')" >> $GITHUB_OUTPUT
 
     - name: Download artifacts
-      uses: actions/download-artifact@v2
+      uses: actions/download-artifact@v3
       with:
         name: greaseweazle-firmware.ci.${{ steps.vars.outputs.ver }}