Skip to content

Commit

Permalink
Fix release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Nov 27, 2021
1 parent e75b3e1 commit deef976
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/release-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit deef976

Please sign in to comment.