update dependencies

This commit is contained in:
marhali 2022-02-04 15:49:10 +01:00
parent ff9da52f75
commit e08e27343c
6 changed files with 22 additions and 9 deletions

View File

@ -61,11 +61,14 @@ jobs:
CHANGELOG="${CHANGELOG//'%'/'%25'}" CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "::set-output name=version::$VERSION" echo "::set-output name=version::$VERSION"
echo "::set-output name=name::$NAME" echo "::set-output name=name::$NAME"
echo "::set-output name=changelog::$CHANGELOG" echo "::set-output name=changelog::$CHANGELOG"
echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier" echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier"
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
# Run tests # Run tests
- name: Run Tests - name: Run Tests
run: ./gradlew test run: ./gradlew test
@ -80,7 +83,7 @@ jobs:
# Cache Plugin Verifier IDEs # Cache Plugin Verifier IDEs
- name: Setup Plugin Verifier IDEs Cache - name: Setup Plugin Verifier IDEs Cache
uses: actions/cache@v2.1.6 uses: actions/cache@v2.1.7
with: with:
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }} key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }}
@ -99,7 +102,7 @@ jobs:
# Run Qodana inspections # Run Qodana inspections
- name: Qodana - Code Inspection - name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v4.1.0 uses: JetBrains/qodana-action@v4.2.3
# Prepare plugin archive content for creating artifact # Prepare plugin archive content for creating artifact
- name: Prepare Plugin Artifact - name: Prepare Plugin Artifact
@ -109,7 +112,9 @@ jobs:
cd ${{ github.workspace }}/build/distributions cd ${{ github.workspace }}/build/distributions
FILENAME=`ls *.zip` FILENAME=`ls *.zip`
unzip "$FILENAME" -d content unzip "$FILENAME" -d content
echo "::set-output name=filename::$FILENAME"
echo "::set-output name=filename::${FILENAME:0:-4}"
# Store already-built plugin as an artifact for downloading # Store already-built plugin as an artifact for downloading
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2.2.4 uses: actions/upload-artifact@v2.2.4
@ -138,6 +143,7 @@ jobs:
gh api repos/{owner}/{repo}/releases \ gh api repos/{owner}/{repo}/releases \
--jq '.[] | select(.draft == true) | .id' \ --jq '.[] | select(.draft == true) | .id' \
| xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{} | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
# Create new release draft - which is not publicly visible and requires manual acceptance # Create new release draft - which is not publicly visible and requires manual acceptance
- name: Create Release Draft - name: Create Release Draft
env: env:

View File

@ -37,11 +37,13 @@ jobs:
${{ github.event.release.body }} ${{ github.event.release.body }}
EOM EOM
)" )"
CHANGELOG="${CHANGELOG//'%'/'%25'}" CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "::set-output name=changelog::$CHANGELOG" echo "::set-output name=changelog::$CHANGELOG"
# Update Unreleased section with the current release note # Update Unreleased section with the current release note
- name: Patch Changelog - name: Patch Changelog
if: ${{ steps.properties.outputs.changelog != '' }} if: ${{ steps.properties.outputs.changelog != '' }}
@ -49,6 +51,7 @@ jobs:
CHANGELOG: ${{ steps.properties.outputs.changelog }} CHANGELOG: ${{ steps.properties.outputs.changelog }}
run: | run: |
./gradlew patchChangelog --release-note="$CHANGELOG" ./gradlew patchChangelog --release-note="$CHANGELOG"
# Publish the plugin to the Marketplace # Publish the plugin to the Marketplace
- name: Publish Plugin - name: Publish Plugin
env: env:
@ -69,11 +72,14 @@ jobs:
run: | run: |
VERSION="${{ github.event.release.tag_name }}" VERSION="${{ github.event.release.tag_name }}"
BRANCH="changelog-update-$VERSION" BRANCH="changelog-update-$VERSION"
git config user.email "action@github.com" git config user.email "action@github.com"
git config user.name "GitHub Action" git config user.name "GitHub Action"
git checkout -b $BRANCH git checkout -b $BRANCH
git commit -am "Changelog update - $VERSION" git commit -am "Changelog update - $VERSION"
git push --set-upstream origin $BRANCH git push --set-upstream origin $BRANCH
gh pr create \ gh pr create \
--title "Changelog update - \`$VERSION\`" \ --title "Changelog update - \`$VERSION\`" \
--body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \ --body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \

View File

@ -14,6 +14,7 @@
### Changed ### Changed
- Improve exception handling on IO operations - Improve exception handling on IO operations
- Update dependencies
### Fixed ### Fixed
- Character unescaping for '.properties' files - Character unescaping for '.properties' files

View File

@ -7,9 +7,9 @@ plugins {
// Java support // Java support
id("java") id("java")
// Kotlin support // Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.6.0" id("org.jetbrains.kotlin.jvm") version "1.6.10"
// Gradle IntelliJ Plugin // Gradle IntelliJ Plugin
id("org.jetbrains.intellij") version "1.3.0" id("org.jetbrains.intellij") version "1.3.1"
// Gradle Changelog Plugin // Gradle Changelog Plugin
id("org.jetbrains.changelog") version "1.3.1" id("org.jetbrains.changelog") version "1.3.1"
// Gradle Qodana Plugin // Gradle Qodana Plugin

View File

@ -23,7 +23,7 @@ platformPlugins = org.jetbrains.kotlin, JavaScriptLanguage, org.jetbrains.plugin
javaVersion = 11 javaVersion = 11
# Gradle Releases -> https://github.com/gradle/gradle/releases # Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion = 7.3 gradleVersion = 7.3.3
# Opt-out flag for bundling Kotlin standard library. # Opt-out flag for bundling Kotlin standard library.
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details. # See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists