Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit a16d21c

Browse files
authored
chore: replace '::set-output' with '>> $GITHUB_OUTPUT' (#3764)
* chore: replace '::set-output' with '>> $GITHUB_OUTPUT' * trigger docs pipeline when yml changed
1 parent 16384e2 commit a16d21c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pull-request-docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ on:
44
pull_request:
55
paths:
66
- 'docs/**'
7+
- '.github/workflows/pull-request-docs.yml'
78
push:
89
branches: [master]
910
paths:
1011
- 'docs/**'
12+
- '.github/workflows/pull-request-docs.yml'
1113

1214
jobs:
1315
all_github_action_checks:
@@ -33,13 +35,13 @@ jobs:
3335
id: check_files
3436
run: |
3537
echo "========== check paths of modified files =========="
36-
echo "::set-output name=run_all_github_action_checks::true"
38+
echo "run_all_github_action_checks=true" >> $GITHUB_OUTPUT
3739
git diff --name-only HEAD^ HEAD > files.txt
3840
while IFS= read -r file
3941
do
4042
if [[ $file != docs/** ]]; then
4143
echo "Found modified non-'docs' file(s)"
42-
echo "::set-output name=run_all_github_action_checks::false"
44+
echo "run_all_github_action_checks=false" >> $GITHUB_OUTPUT
4345
break
4446
fi
4547
done < files.txt

0 commit comments

Comments
 (0)