File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 6
6
test :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/checkout@v2
10
- - uses : actions/setup-java@v2
9
+ - uses : actions/checkout@v3
10
+ - uses : actions/setup-java@v3
11
11
with :
12
12
java-version : ' 8'
13
13
distribution : ' adopt'
14
+ cache : ' gradle'
14
15
- name : Test
15
16
run : ./gradlew test
Original file line number Diff line number Diff line change 13
13
repository : ' sourcegraph/pr-auditor'
14
14
- uses : actions/setup-go@v4
15
15
with : { go-version: '1.20' }
16
-
17
16
- run : ' ./check-pr.sh'
18
17
env :
19
18
GITHUB_EVENT_PATH : ${{ env.GITHUB_EVENT_PATH }}
Original file line number Diff line number Diff line change 7
7
publish :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - uses : actions/checkout@v2
10
+ - uses : actions/checkout@v3
11
11
- name : Get tag
12
12
id : tag
13
- run : echo "::set-output name= version:: ${GITHUB_REF/refs\/tags\/v/}"
14
- - uses : actions/setup-java@v2
13
+ run : echo "version= ${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
14
+ - uses : actions/setup-java@v3
15
15
with :
16
16
java-version : ' 8'
17
17
distribution : ' adopt'
18
+ cache : ' gradle'
18
19
- name : Publish ${{ github.ref }}
19
20
run : ./gradlew -Pversion=${{ steps.tag.outputs.version }} publish
20
21
env :
You can’t perform that action at this time.
0 commit comments