Skip to content

Commit

Permalink
Fix #132: replace set-output with env files in GH actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
qwenger committed Nov 3, 2023
1 parent 55c4c54 commit 6a38b99
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
if: inputs.use-pipx == 'false'
- run: poetry config --local virtualenvs.in-project true
shell: bash
- run: echo "::set-output name=v::$(poetry --version | cut -d' ' -f3 | cut -d')' -f1)"
- run: echo "v=$(poetry --version | cut -d' ' -f3 | cut -d')' -f1)" >> "$GITHUB_OUTPUT"
shell: bash
id: poetry-version
- uses: actions/cache@v3
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ jobs:
pass-env:
runs-on: ubuntu-latest
outputs:
py-versions-str: ${{ steps.set-env.outputs.py-versions-str }}
versions-linux-str: ${{ steps.set-env.outputs.versions-linux-str }}
versions-macos-str: ${{ steps.set-env.outputs.versions-macos-str }}
versions-windows-str: ${{ steps.set-env.outputs.versions-windows-str }}
is-from-tag-str: ${{ steps.set-env.outputs.is-from-tag-str }}
is-for-release-str: ${{ steps.set-env.outputs.is-for-release-str }}
py-versions-str: ${{ steps.set-env.outputs.py_versions_str }}
versions-linux-str: ${{ steps.set-env.outputs.versions_linux_str }}
versions-macos-str: ${{ steps.set-env.outputs.versions_macos_str }}
versions-windows-str: ${{ steps.set-env.outputs.versions_windows_str }}
is-from-tag-str: ${{ steps.set-env.outputs.is_from_tag_str }}
is-for-release-str: ${{ steps.set-env.outputs.is_for_release_str }}
steps:
- id: set-env
run: |
echo "::set-output name=py-versions-str::${{ toJSON(env.PY_VERSIONS_STR) }}"
echo "::set-output name=versions-linux-str::${{ toJSON(env.VERSIONS_LINUX_STR) }}"
echo "::set-output name=versions-macos-str::${{ toJSON(env.VERSIONS_MACOS_STR) }}"
echo "::set-output name=versions-windows-str::${{ toJSON(env.VERSIONS_WINDOWS_STR) }}"
echo "::set-output name=is-from-tag-str::${{ toJSON(github.ref_type == 'tag') }}"
echo "::set-output name=is-for-release-str::${{ toJSON(!contains(github.ref_name, 'dev')) }}"
echo "py_versions_str=${{ toJSON(env.PY_VERSIONS_STR) }}" >> "$GITHUB_OUTPUT"
echo "versions_linux_str=${{ toJSON(env.VERSIONS_LINUX_STR) }}" >> "$GITHUB_OUTPUT"
echo "versions_macos_str=${{ toJSON(env.VERSIONS_MACOS_STR) }}" >> "$GITHUB_OUTPUT"
echo "versions_windows_str=${{ toJSON(env.VERSIONS_WINDOWS_STR) }}" >> "$GITHUB_OUTPUT"
echo "is_from_tag_str=${{ toJSON(github.ref_type == 'tag') }}" >> "$GITHUB_OUTPUT"
echo "is_for_release_str=${{ toJSON(!contains(github.ref_name, 'dev')) }}" >> "$GITHUB_OUTPUT"
build-linux:
needs: pass-env
strategy:
Expand Down

0 comments on commit 6a38b99

Please sign in to comment.