From deef976a65813e41665807a5694083d0fb7631d6 Mon Sep 17 00:00:00 2001 From: Justin Yoo Date: Sat, 27 Nov 2021 21:55:57 +0900 Subject: [PATCH] Fix release pipeline --- .github/workflows/release-all.yaml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release-all.yaml b/.github/workflows/release-all.yaml index 279d26a..3fcf0ae 100644 --- a/.github/workflows/release-all.yaml +++ b/.github/workflows/release-all.yaml @@ -29,20 +29,14 @@ jobs: $module = $segments[0] $version = $segments[1] - # echo "::set-env name=RELEASE_MODULE::$module" - # echo "::set-env name=RELEASE_VERSION::$version" - echo "::set-output name=module::$module" echo "::set-output name=version::$version" - name: Check release module and version shell: pwsh run: | - # echo "env: $env:RELEASE_MODULE" - # echo "env: $env:RELEASE_VERSION" - - echo "output: ${{ steps.release.outputs.module }}" - echo "output: ${{ steps.release.outputs.version }}" + echo "module: ${{ steps.release.outputs.module }}" + echo "version: ${{ steps.release.outputs.version }}" - name: Checkout the repository uses: actions/checkout@v2 @@ -78,24 +72,21 @@ jobs: - name: List Package for Common if: steps.release.outputs.module == 'common' + id: package shell: pwsh run: | $package = Get-ChildItem -Path ./src/*.Common -Include *.nupkg -Recurse | Where-Object { $_.FullName -like "*${{ steps.release.outputs.version }}*" } $path = $package[0].FullName $name = $package[0].Name - echo "::set-env name=PACKAGE_PATH::$path" - echo "::set-env name=PACKAGE_NAME::$name" + echo "::set-output name=path::$path" + echo "::set-output name=name::$name" - name: Check package path and name - id: package shell: pwsh run: | - echo "package-path: $env:PACKAGE_PATH" - echo "package-name: $env:PACKAGE_NAME" - - echo "::set-output name=path::$env:PACKAGE_PATH" - echo "::set-output name=name::$env:PACKAGE_NAME" + echo "path: ${{ steps.package.outputs.path }}" + echo "name: ${{ steps.package.outputs.name }}" - name: Create Release to GitHub id: ghrelease