Skip to content

Commit 08cada0

Browse files
committed
[ci] Update workflows.
1 parent 7569cc3 commit 08cada0

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ jobs:
1717
version: ${{ steps.properties.outputs.version }}
1818
changelog: ${{ steps.properties.outputs.changelog }}
1919
steps:
20+
21+
# Free GitHub Actions Environment Disk Space
22+
- name: Maximize Build Space
23+
run: |
24+
sudo rm -rf /usr/share/dotnet
25+
sudo rm -rf /usr/local/lib/android
26+
sudo rm -rf /opt/ghc
27+
2028
# Check out current repository
2129
- name: Fetch Sources
2230
uses: actions/[email protected]
@@ -30,7 +38,7 @@ jobs:
3038
uses: actions/setup-java@v3
3139
with:
3240
distribution: adopt
33-
java-version: 14
41+
java-version: 17
3442
cache: gradle
3543

3644
# Set environment variables
@@ -50,7 +58,7 @@ jobs:
5058
echo "changelog<<EOF" >> $GITHUB_OUTPUT
5159
echo "$CHANGELOG" >> $GITHUB_OUTPUT
5260
echo "EOF" >> $GITHUB_OUTPUT
53-
61+
5462
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
5563
5664
# Run tests
@@ -109,6 +117,8 @@ jobs:
109117
if: github.event_name != 'pull_request'
110118
needs: build
111119
runs-on: ubuntu-latest
120+
permissions:
121+
contents: write
112122
steps:
113123

114124
# Check out current repository

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/setup-java@v3
2929
with:
3030
distribution: adopt
31-
java-version: 14
31+
java-version: 17
3232
cache: gradle
3333

3434
# Set environment variables

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Unreleased
3+
## [Unreleased]
44

55
### Added
66
- Option for setting file path glob patterns for linting.

build.gradle.kts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ intellij {
2626
version.set(properties("platformVersion"))
2727
type.set(properties("platformType"))
2828

29-
plugins.set(properties("platformPlugins").split(',')
30-
.map(String::trim)
31-
.filter(String::isNotEmpty))
29+
plugins.set(
30+
properties("platformPlugins").split(',')
31+
.map(String::trim)
32+
.filter(String::isNotEmpty)
33+
)
3234
}
3335

3436
changelog {
35-
// version.set(properties("pluginVersion"))
37+
// version.set(properties("pluginVersion"))
3638
groups.set(emptyList())
3739
repositoryUrl.set(properties("pluginRepositoryUrl"))
3840
}
@@ -62,8 +64,9 @@ tasks {
6264
changeNotes.set(provider {
6365
with(changelog) {
6466
renderItem(
65-
getOrNull(properties("pluginVersion"))
66-
?: runCatching { getLatest() }.getOrElse { getUnreleased() },
67+
getOrNull(properties("pluginVersion")) ?: getUnreleased()
68+
.withHeader(false)
69+
.withEmptySections(false),
6770
Changelog.OutputType.HTML,
6871
)
6972
}

0 commit comments

Comments
 (0)