Replace deprecated set-output with GITHUB_OUTPUT
Replace the deprecated `::set-output` workflow command with appending output key-value pairs to $GITHUB_OUTPUT. Reference: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
This commit is contained in:
1 parent
09f4cff8a4
commit
d352136e3d
1 file changed
+1
-1
@@ -38,7 +38,7 @@ jobs:
|
||||
run: |
|
||||
git add -- cedict_1_0_ts_utf-8_mdbg.txt
|
||||
git diff --cached --stat
|
||||
echo "::set-output name=changed::$(git diff --cached --quiet; echo $?)"
|
||||
echo "changed=$(git diff --cached --quiet; echo $?)" >> "$GITHUB_OUTPUT"
|
||||
- name: "Update metadata"
|
||||
if: "fromJSON(steps.diff.outputs.changed)"
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user