File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ jobs:
17
17
run : |
18
18
cat ./temp.json | jq . > etc/shielding/datacenters.json
19
19
rm -f ./temp.json
20
- echo "::set-output name= diff-count:: $(git diff --name-only | wc -l)"
20
+ echo "diff-count= $(git diff --name-only | wc -l)" >> "$GITHUB_OUTPUT "
21
21
SHA1=`sha1sum etc/shielding/datacenters.json | awk '{print $1}'`
22
- echo "::set-output name= sha1:: $SHA1"
23
- echo "::set-output name= pr-count:: $(gh pr list --search "${SHA1} in:title is:open" --json title -q '.[] | .title' | wc -l)"
22
+ echo "sha1= $SHA1" >> "$GITHUB_OUTPUT "
23
+ echo "pr-count= $(gh pr list --search "${SHA1} in:title is:open" --json title -q '.[] | .title' | wc -l)" >> "$GITHUB_OUTPUT "
24
24
env :
25
25
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
26
- name : Check diff and create PR
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ jobs:
20
20
run : |
21
21
cat ./temp.json | jq . > etc/shielding/datacenters.json
22
22
rm -f ./temp.json
23
- echo "::set-output name= diff-count:: $(git diff --name-only | wc -l)"
23
+ echo "diff-count= $(git diff --name-only | wc -l)" >> "$GITHUB_OUTPUT "
24
24
SHA1=`sha1sum etc/shielding/datacenters.json | awk '{print $1}'`
25
- echo "::set-output name= sha1:: $SHA1"
26
- echo "::set-output name= pr-count:: $(gh pr list --search "${SHA1} in:title is:open" --json title -q '.[] | .title' | wc -l)"
25
+ echo "sha1= $SHA1" >> "$GITHUB_OUTPUT "
26
+ echo "pr-count= $(gh pr list --search "${SHA1} in:title is:open" --json title -q '.[] | .title' | wc -l)" >> "$GITHUB_OUTPUT "
27
27
env :
28
28
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
29
- name : Check diff and create PR
You can’t perform that action at this time.
0 commit comments