瀏覽代碼

ci: refactor deprecated usages of set-output command

Nicolas Meienberger 2 年之前
父節點
當前提交
716b368f31
共有 3 個文件被更改,包括 3 次插入5 次删除
  1. 1 1
      .github/workflows/ci.yml
  2. 1 1
      .github/workflows/release-candidate.yml
  3. 1 3
      .github/workflows/release.yml

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

@@ -48,7 +48,7 @@ jobs:
       - name: Get pnpm store directory
       - name: Get pnpm store directory
         id: pnpm-cache
         id: pnpm-cache
         run: |
         run: |
-          echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
+          echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
 
 
       - uses: actions/cache@v3
       - uses: actions/cache@v3
         name: Setup pnpm cache
         name: Setup pnpm cache

+ 1 - 1
.github/workflows/release-candidate.yml

@@ -31,7 +31,7 @@ jobs:
         run: |
         run: |
           VERSION=$(npm run version --silent)
           VERSION=$(npm run version --silent)
           TAG=${VERSION}
           TAG=${VERSION}
-          echo "::set-output name=tag::${TAG}"
+          echo "tag=${TAG}" >> $GITHUB_OUTPUT
 
 
       - name: Build and push images
       - name: Build and push images
         uses: docker/build-push-action@v4
         uses: docker/build-push-action@v4

+ 1 - 3
.github/workflows/release.yml

@@ -27,7 +27,7 @@ jobs:
         run: |
         run: |
           VERSION=$(npm run version --silent)
           VERSION=$(npm run version --silent)
           TAG=${VERSION}
           TAG=${VERSION}
-          echo "::set-output name=tag::${TAG}"
+          echo "tag=${TAG}" >> $GITHUB_OUTPUT
 
 
       - name: Build and push images
       - name: Build and push images
         uses: docker/build-push-action@v4
         uses: docker/build-push-action@v4
@@ -58,5 +58,3 @@ jobs:
           release_name: ${{ steps.create_tag.outputs.tagname }}
           release_name: ${{ steps.create_tag.outputs.tagname }}
           draft: false
           draft: false
           prerelease: false
           prerelease: false
-
-