Skip to content

Commit 41f6030

Browse files
authored
Release v1.2.0
Merge pull request #70 from mathze/develop
2 parents 26594e4 + a663f8d commit 41f6030

22 files changed

+212
-90
lines changed

.github/renovate.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:base"
5+
]
6+
}

.github/workflows/auto_build_action_step1.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3.3.0
1616

1717
- name: Set up JDK
18-
uses: actions/setup-java@v2
18+
uses: actions/setup-java@v3.9.0
1919
with:
2020
distribution: 'temurin'
2121
java-version: 17
@@ -25,7 +25,7 @@ jobs:
2525
run: ./gradlew build
2626

2727
- name: Commit dist
28-
uses: EndBug/add-and-commit@v7
28+
uses: EndBug/add-and-commit@v9.1.1
2929
with:
3030
add: 'dist'
3131
message: 'Commit new/updated dist'

.github/workflows/housekeeping.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ on:
1616
required: false
1717

1818
jobs:
19-
clean-workwlow-runs:
19+
clean-workflow-runs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: setup
2323
id: setup
2424
run: |
25-
if [[ -z "${{ github.event.inputs.retain_days }}" ]]; then
26-
echo "::set-output name=retain_days::1"
25+
if [[ ! -z "${{ github.event.inputs.retain_days }}" ]]; then
26+
echo "retain_days=${{ github.event.inputs.retain_days }}" >> $GITHUB_OUTPUT
2727
else
28-
echo "::set-output name=retain_days::${{ github.event.inputs.retain_days }}"
28+
echo "retain_days=1" >> $GITHUB_OUTPUT
2929
fi
30-
if [[ -z "${{ github.event.inputs.min_num_runs }}" ]]; then
31-
echo "::set-output name=min_runs::1"
30+
if [[ ! -z "${{ github.event.inputs.min_num_runs }}" ]]; then
31+
echo "min_runs=${{ github.event.inputs.min_num_runs }}" >> $GITHUB_OUTPUT
3232
else
33-
echo "::set-output name=min_runs::${{ github.event.inputs.min_num_runs }}"
33+
echo "min_runs=1" >> $GITHUB_OUTPUT
3434
fi
3535
3636
- name: clean runs

.github/workflows/test.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: "Checkout"
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3.3.0
1515

1616
- name: "Extract branch name"
1717
id: get_ref
18-
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
18+
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
1919

2020
- name: "Run action with no payload"
2121
id: dispatchNoPayload
@@ -56,7 +56,7 @@ jobs:
5656
- id: extract_job_id
5757
run: |
5858
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
59-
echo "::set-output name=job_id::$job_id"
59+
echo "job_id=$job_id" >> "$GITHUB_OUTPUT"
6060
- uses: octokit/[email protected]
6161
id: get_checkrun
6262
with:
@@ -65,8 +65,8 @@ jobs:
6565
check_id: ${{ steps.extract_job_id.outputs.job_id }}
6666
- id: extract_annotations_data
6767
run: |
68-
echo "::set-output name=title::${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
69-
echo "::set-output name=message::${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
68+
echo "title=${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT"
69+
echo "message=${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT"
7070
- name: "Assert noPayload result"
7171
run: |
7272
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||
@@ -93,7 +93,7 @@ jobs:
9393
- id: extract_job_id
9494
run: |
9595
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
96-
echo "::set-output name=job_id::$job_id"
96+
echo "job_id=$job_id" >> "$GITHUB_OUTPUT"
9797
- uses: octokit/[email protected]
9898
id: get_checkrun
9999
with:
@@ -102,8 +102,8 @@ jobs:
102102
check_id: ${{ steps.extract_job_id.outputs.job_id }}
103103
- id: extract_annotations_data
104104
run: |
105-
echo "::set-output name=title::${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
106-
echo "::set-output name=message::${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
105+
echo "title=${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT"
106+
echo "message=${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT"
107107
- name: "Assert withPayload result"
108108
run: |
109109
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||

.github/workflows/testWithExtId.yml

+18-18
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: "Checkout"
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3.3.0
1515

1616
- name: "Extract branch name"
1717
id: get_ref
18-
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
18+
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
1919

2020
- name: "Run first action"
2121
id: action1
@@ -51,11 +51,11 @@ jobs:
5151
runs-on: ubuntu-latest
5252
steps:
5353
- name: "Checkout"
54-
uses: actions/checkout@v2
54+
uses: actions/checkout@v3
5555

5656
- name: "Extract branch name"
5757
id: get_ref
58-
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
58+
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
5959

6060
- name: "Run separate dispatch"
6161
id: action3
@@ -84,11 +84,11 @@ jobs:
8484
runs-on: ubuntu-latest
8585
steps:
8686
- name: Checkout
87-
uses: actions/checkout@v2
87+
uses: actions/checkout@v3
8888

8989
- name: "Extract branch name"
9090
id: get_ref
91-
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
91+
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
9292

9393
- name: Run and wait
9494
id: action4
@@ -121,7 +121,7 @@ jobs:
121121
- id: extract_job_id
122122
run: |
123123
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
124-
echo "::set-output name=job_id::$job_id"
124+
echo "job_id=$job_id" >> "$GITHUB_OUTPUT"
125125
- uses: octokit/[email protected]
126126
id: get_checkrun
127127
with:
@@ -130,8 +130,8 @@ jobs:
130130
check_id: ${{ steps.extract_job_id.outputs.job_id }}
131131
- id: extract_annotations_data
132132
run: |
133-
echo "::set-output name=title::${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
134-
echo "::set-output name=message::${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
133+
echo "title=${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT"
134+
echo "message=${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT"
135135
- name: "Assert Job1 Action1 result"
136136
run: |
137137
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||
@@ -158,7 +158,7 @@ jobs:
158158
- id: extract_job_id
159159
run: |
160160
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
161-
echo "::set-output name=job_id::$job_id"
161+
echo "job_id=$job_id" >> "$GITHUB_OUTPUT"
162162
- uses: octokit/[email protected]
163163
id: get_checkrun
164164
with:
@@ -167,8 +167,8 @@ jobs:
167167
check_id: ${{ steps.extract_job_id.outputs.job_id }}
168168
- id: extract_annotations_data
169169
run: |
170-
echo "::set-output name=title::${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
171-
echo "::set-output name=message::${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
170+
echo "title=${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT"
171+
echo "message=${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT"
172172
- name: "Assert Job1 Action2 result"
173173
run: |
174174
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||
@@ -195,7 +195,7 @@ jobs:
195195
- id: extract_job_id
196196
run: |
197197
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
198-
echo "::set-output name=job_id::$job_id"
198+
echo "job_id=$job_id" >> "$GITHUB_OUTPUT"
199199
- uses: octokit/[email protected]
200200
id: get_checkrun
201201
with:
@@ -204,8 +204,8 @@ jobs:
204204
check_id: ${{ steps.extract_job_id.outputs.job_id }}
205205
- id: extract_annotations_data
206206
run: |
207-
echo "::set-output name=title::${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
208-
echo "::set-output name=message::${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
207+
echo "title=${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT"
208+
echo "message=${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT"
209209
- name: "Assert Job2 result"
210210
run: |
211211
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||
@@ -232,7 +232,7 @@ jobs:
232232
- id: extract_job_id
233233
run: |
234234
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
235-
echo "::set-output name=job_id::$job_id"
235+
echo "job_id=$job_id" >> "$GITHUB_OUTPUT"
236236
- uses: octokit/[email protected]
237237
id: get_checkrun
238238
with:
@@ -241,8 +241,8 @@ jobs:
241241
check_id: ${{ steps.extract_job_id.outputs.job_id }}
242242
- id: extract_annotations_data
243243
run: |
244-
echo "::set-output name=title::${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
245-
echo "::set-output name=message::${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
244+
echo "title=${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT"
245+
echo "message=${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT"
246246
- name: "Assert Job3 result"
247247
run: |
248248
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||

.github/workflows/testWithFail.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: "Checkout"
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v3.3.0
1111

1212
- name: "Extract branch name"
1313
id: get_ref
14-
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
14+
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
1515

1616
- name: "Trigger workflow"
1717
id: dispatch

.github/workflows/testWithWaitTimeout.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: "Checkout"
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v3.3.0
1111

1212
- name: "Extract branch name"
1313
id: get_ref
14-
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
14+
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
1515

1616
- name: "Trigger workflow"
1717
id: dispatch

.gitignore

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
.gradle
2-
/build/
1+
.gradle/
2+
build/
33
/.idea/
44

55
# Ignore Gradle GUI config
66
gradle-app.setting
77

88
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
99
!gradle-wrapper.jar
10-
11-
# Cache of project
12-
.gradletasknamecache
13-
14-
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
15-
# gradle/wrapper/gradle-wrapper.properties
16-
17-
# Ignore Gradle build output directory
18-
build

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2021 mathze
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)