Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(action): Port from set-output to env files #141

Merged
merged 1 commit into from Oct 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 11 additions & 11 deletions action.yaml
Expand Up @@ -21,7 +21,7 @@ runs:
steps:
- name: Get operating system name and version.
id: os
run: echo "::set-output name=image::$ImageOS"
run: echo "IMAGE=$ImageOS" >>"$GITHUB_OUTPUT"
shell: bash
- name: Get asdf versions of tools with first-class GitHub Actions support.
id: tool-versions
Expand All @@ -33,7 +33,7 @@ runs:
version="${array[1]}"
case $tool in
dotnet-core | nodejs | python)
echo "::set-output name=$tool::$version"
echo "$tool=$version" >>"$GITHUB_OUTPUT"
;;

*)
Expand Down Expand Up @@ -68,7 +68,7 @@ runs:
with:
path: ${{ env.ASDF_DIR }}
key: >
asdf-v0.10.2-${{ steps.os.outputs.image }}-${{
asdf-v0.10.2-${{ steps.os.outputs.IMAGE }}-${{
hashFiles('**/.tool-versions')
}}
- name: Install asdf-managed tools based on .tool-versions.
Expand All @@ -81,16 +81,16 @@ runs:
id: poetry-cache
run: |
poetry_cache="$(poetry config -- cache-dir)"
echo "::set-output name=path::$poetry_cache"
echo "PATH=$poetry_cache" >>"$GITHUB_OUTPUT"
shell: bash
- name: Cache Poetry dependencies.
uses: actions/cache@v3.0.10
with:
path: |
${{ steps.poetry-cache.outputs.path }}
${{ steps.poetry-cache.outputs.PATH }}
.venv
key: >
poetry-${{ steps.os.outputs.image }}-${{ hashFiles(
poetry-${{ steps.os.outputs.IMAGE }}-${{ hashFiles(
'poetry.toml',
'**/poetry.lock'
) }}
Expand All @@ -101,14 +101,14 @@ runs:
id: npm-cache
run: |
npm_cache="$(npm config get cache)"
echo "::set-output name=path::$npm_cache"
echo "PATH=$npm_cache" >>"$GITHUB_OUTPUT"
shell: bash
- name: Cache npm dependencies.
uses: actions/cache@v3.0.10
with:
path: ${{ steps.npm-cache.outputs.path }}
path: ${{ steps.npm-cache.outputs.PATH }}
key: >
node-${{ steps.os.outputs.image }}-${{ hashFiles(
node-${{ steps.os.outputs.IMAGE }}-${{ hashFiles(
'.mega-linter.yaml',
'.pre-commit-config.yaml',
'.pre-commit-hooks.yaml'
Expand All @@ -119,15 +119,15 @@ runs:
uses: ScribeMD/docker-cache@0.2.4
with:
key: >
docker-${{ steps.os.outputs.image }}-${{
docker-${{ steps.os.outputs.IMAGE }}-${{
hashFiles('.pre-commit-config.yaml')
}}
- name: Cache pre-commit hooks.
uses: actions/cache@v3.0.10
with:
path: ~/.cache/pre-commit
key: >
pre-commit-${{ steps.os.outputs.image }}-${{ hashFiles(
pre-commit-${{ steps.os.outputs.IMAGE }}-${{ hashFiles(
'**/.tool-versions',
'**/poetry.lock',
'.pre-commit-config.yaml'
Expand Down