From 52c571417bb29f9ac5227101d7c5836cee494e03 Mon Sep 17 00:00:00 2001 From: epaew Date: Mon, 31 Oct 2022 07:51:48 +0900 Subject: [PATCH] Fix warning of GitHub Actions: ``` The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ ``` --- .github/workflows/git-diff.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/git-diff.yaml b/.github/workflows/git-diff.yaml index 01a1850..217aeda 100644 --- a/.github/workflows/git-diff.yaml +++ b/.github/workflows/git-diff.yaml @@ -20,8 +20,7 @@ jobs: - name: Fetch changed file names id: changed-files run: | - echo "::set-output name=diff::" \ - "$(git diff --diff-filter=d --name-only origin/${{ github.base_ref }} | tr '\n' ' ')" + echo "diff=$(git diff --diff-filter=d --name-only origin/${{ github.base_ref }} | tr '\n' ' ')" >> $GITHUB_OUTPUT check-files-included: name: Check ${{ matrix.target }} is/are changed