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: deprecated set output and upgrade pnpm action #26

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/makefile/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ runs:
working-directory: ${{ inputs.working_directory }}
id: helm-history
run: |-
echo "::set-output name=length::$(make helm-history-length)"
echo "length=$(make helm-history-length)" >> $GITHUB_OUTPUT

- name: Get Helm revision
if: "${{ inputs.prune == 'true' }}"
shell: bash
working-directory: ${{ inputs.working_directory }}
id: helm-revision
run: |-
echo "::set-output name=oldest::$(make helm-oldest-revision)"
echo "oldest=$(make helm-oldest-revision)" >> $GITHUB_OUTPUT

- name: Get Helm values
if: "${{ (inputs.prune == 'true') && (steps.helm-revision.outputs.oldest != 0) }}"
Expand All @@ -218,7 +218,7 @@ runs:
env:
REVISION: ${{ steps.helm-revision.outputs.oldest }}
run: |-
echo "::set-output name=image-tag::$(make helm-image-tag)"
echo "image-tag=$(make helm-image-tag)" >> $GITHUB_OUTPUT

- name: Get Image timestamp
if: "${{ (inputs.prune == 'true') && (steps.helm-values.outputs.image-tag != '') }}"
Expand All @@ -229,7 +229,7 @@ runs:
DOCKER_REPOSITORY: ${{ inputs.gcr_host }}/${{ inputs.project_id }}
REVISION_IMAGE: ${{ steps.helm-values.outputs.image-tag }}
run: |-
echo "::set-output name=image-timestamp::$(make helm-image-timestamp)"
echo "image-timestamp=$(make helm-image-timestamp)" >> $GITHUB_OUTPUT

- name: Remove unused Docker images
if: "${{ (inputs.prune == 'true') && (steps.helm-timestamp.outputs.image-timestamp != '') }}"
Expand All @@ -256,8 +256,8 @@ runs:
shell: bash
working-directory: ${{ inputs.working_directory }}
run: |-
echo "::set-output name=app-name::$(make get-app-name)"
echo "::set-output name=app-version::$(make get-app-version || echo 'latest')"
echo "app-name=$(make get-app-name)" >> $GITHUB_OUTPUT
echo "app-version=$(make get-app-version || echo 'latest')" >> $GITHUB_OUTPUT

- name: Get app custom version
id: app-meta-custom
Expand All @@ -266,4 +266,4 @@ runs:
env:
SKIP_VERSION: ${{ inputs.app_custom_version_skip }}
run: |-
echo "::set-output name=app-custom-version::$(make get-app-version || echo 'latest')"
echo "app-custom-version=$(make get-app-version || echo 'latest')" >> $GITHUB_OUTPUT
4 changes: 2 additions & 2 deletions packages/pnpm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
${{ runner.os }}-pnpm-

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
uses: pnpm/action-setup@v2
with:
version: ${{ inputs.pnpm_version }}

Expand All @@ -53,7 +53,7 @@ runs:
prefix="."
string=$INPUT_DIRECTORY
cache_path=${string#"$prefix"}
echo "::set-output name=cache-path::${{ github.workspace }}$cache_path/.next/cache"
echo "cache-path=${{ github.workspace }}$cache_path/.next/cache" >> $GITHUB_OUTPUT

- name: Cache Next.js
if: "${{ (inputs.using_nextjs == 'true' && inputs.cache == 'true') }}"
Expand Down
4 changes: 2 additions & 2 deletions packages/rancher/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ runs:
shell: bash
working-directory: ${{ inputs.working_directory }}
run: |-
echo "::set-output name=app-name::$(make get-app-name)"
echo "::set-output name=business-unit::$(make get-business-unit)"
echo "app-name=$(make get-app-name)" >> $GITHUB_OUTPUT
echo "business-unit=$(make get-business-unit)" >> $GITHUB_OUTPUT

- name: Configure namespace-project mapping in rancher
uses: kitabisa/actions/rancher-ns-mover@master
Expand Down
5 changes: 3 additions & 2 deletions packages/yarn/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ runs:
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
shell: bash
run: echo "::set-output name=dir::$(yarn cache dir)"
run: |-
echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache Yarn packages
if: "${{ inputs.cache == 'true' }}"
Expand All @@ -51,7 +52,7 @@ runs:
prefix="."
string=$INPUT_DIRECTORY
cache_path=${string#"$prefix"}
echo "::set-output name=cache-path::${{ github.workspace }}$cache_path/.next/cache"
echo "cache-path=${{ github.workspace }}$cache_path/.next/cache" >> $GITHUB_OUTPUT

- name: Cache Next.js
if: "${{ (inputs.using_nextjs == 'true' && inputs.cache == 'true') }}"
Expand Down