File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,17 @@ jobs:
19
19
run : |
20
20
git clone https://github.com/Jigsaw-Code/outline-server.git outline-server
21
21
cd outline-server
22
- echo "::set-output name= tag:: $(git describe --tags --abbrev=0)"
22
+ echo "tag= $(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
23
23
- name : Get local release
24
24
id : local
25
25
run : |
26
- echo ::set-output name=tag::" $(curl -sL "https://api.github.com/repos/${{github.repository}}/releases" | jq -r '[.[] | select(.name | startswith("latest-"))][0 ].name')"
26
+ echo "tag= $(curl -sL "https://api.github.com/repos/${{github.repository}}/releases" | jq -r '[.[] | select(.name | startswith("latest-"))] | sort_by(.published_at)[-1 ].name')" >> $GITHUB_OUTPUT
27
27
- name : Test
28
28
id : test
29
29
run : |
30
30
if [[ "latest-${{steps.remote.outputs.tag}}" != "${{steps.local.outputs.tag}}" ]];
31
31
then
32
- echo "::set-output name= latest:: true"
32
+ echo "latest= true" >> $GITHUB_OUTPUT
33
33
fi
34
34
build_master :
35
35
needs : [version]
You can’t perform that action at this time.
0 commit comments