File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ root = true
2+
3+ [* ]
4+ charset =utf-8
5+ end_of_line =lf
6+ indent_style =space
7+ indent_size = 4
8+ insert_final_newline = true
9+
10+ [{* .yml,* .yaml} ]
11+ indent_size = 2
12+
13+ [* .md ]
14+ max_line_length = 160
15+
16+ [{* .html,* .htm} ]
17+ indent_size = 2
18+ ij_continuation_indent_size = 4
19+
20+ [{* .kt,* .kts} ]
21+ ij_continuation_indent_size = 4
22+ ij_kotlin_name_count_to_use_star_import = 99
23+ ij_kotlin_name_count_to_use_star_import_for_members = 99
Original file line number Diff line number Diff line change 2929 - name : Release (if required)
3030 id : get-version
3131 if : github.ref == 'refs/heads/main'
32+ run : |-
33+ git config user.name github-actions
34+ git config user.email github-actions@github.com
35+ git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/http4k/standards.git
36+ LOCAL_VERSION=$(jq -r .http4k.version version.json)
37+ git fetch --deepen=1 || true
38+ if git rev-parse HEAD~1 >/dev/null 2>&1; then
39+ CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD)
40+ else
41+ CHANGED_FILES=$(git show --name-only --pretty=format: HEAD)
42+ fi
43+ if [[ "$CHANGED_FILES" != *version.json* ]]; then
44+ echo "Version did not change on this commit. Ignoring"
45+ echo "tag-created=false" >> $GITHUB_OUTPUT
46+ exit 0
47+ fi
48+ git tag -a "$LOCAL_VERSION" -m "Typeflows JVM version $LOCAL_VERSION"
49+ git push origin "$LOCAL_VERSION"
50+ # Output tag for repository dispatch
51+ echo "tag=$LOCAL_VERSION" >> $GITHUB_OUTPUT
52+ echo "tag-created=true" >> $GITHUB_OUTPUT
3253 env :
3354 GH_TOKEN : ${{ secrets.TOOLBOX_REPO_TOKEN }}
3455 shell : bash
Original file line number Diff line number Diff line change 2222 - name : Setup Gradle
2323 uses : gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6
2424 - name : Publish
25+ run : ./gradlew publish --no-configuration-cache --info -Psign=true -PreleaseVersion="$RELEASE_VERSION" -PsigningKey="$SIGNING_KEY" -PsigningPassword="$SIGNING_PASSWORD"
2526 env :
2627 RELEASE_VERSION : ${{ github.event.client_payload.tag }}
2728 SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
3233 ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PASSWORD }}
3334 shell : bash
3435 - name : Build release note
36+ run : |-
37+ {
38+ echo "Changelog:"
39+ TAG=$(echo "refs/tags/$RELEASE_VERSION" | sed "s/.*tags\///g")
40+ # Find the line with ### version and get content until next ### or end
41+ awk "/^### $TAG/{flag=1; next} /^### / && flag{flag=0} flag" CHANGELOG.md | sed '/^$/d'
42+ } > NOTE.md
3543 env :
3644 RELEASE_VERSION : ${{ github.event.client_payload.tag }}
3745 shell : bash
Original file line number Diff line number Diff line change 1+ 21
2+
You can’t perform that action at this time.
0 commit comments