Skip to content

Update IntelliJ Version #519

Update IntelliJ Version

Update IntelliJ Version #519

name: Update IntelliJ Version
on:
schedule:
- cron: '0 0 * * *' # at 00:00 UTC daily
jobs:
bump-intellij-version:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Update default IntelliJ version
run: |
sbt "update-intellij / run --java-home /usr/local/openjdk-11"
- name: Prepare variables for PR
# language=sh
run: |
release_line=$(grep 'release = \"' core/driver/sources/src/main/resources/reference.conf)
intellij_version=$(cut -d'"' -f2 <<< "$release_line")
echo "BRANCH_NAME=update_intellij_version/$intellij_version" >> $GITHUB_ENV
echo "PR_TITLE=Update IntelliJ version to $intellij_version" >> $GITHUB_ENV
scala_plugin_file_url="https://github.com/VirtusLab/ide-probe/blob/master/extensions/scala/tests/src/test/resources/scala.conf"
probe_driver_test_file_url="https://github.com/VirtusLab/ide-probe/blob/master/core/driver/tests/src/test/scala/org/virtuslab/ideprobe/ProbeDriverTest.scala"
scala_plugin_versions_url="https://plugins.jetbrains.com/plugin/1347-scala/versions"
echo "PR_BODY=Updates the default IntelliJ Version to the newest release. \
Please, check currently used version of the scala plugin in two following files: $scala_plugin_file_url and $probe_driver_test_file_url \
and verify if it is compatible with the new intelliJ IDEA version $intellij_version here: $scala_plugin_versions_url. \
If the currently used version of the scala plugin is NOT compatible with new IntelliJ release - \
please update it in both files in a separate commit." >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
branch: ${{ env.BRANCH_NAME }}
base: "master"
commit-message: ${{ env.PR_TITLE }}
title: ${{ env.PR_TITLE }}
body: ${{ env.PR_BODY }}
author: "virtuslab-bot <[email protected]>"
token: ${{ secrets.BOT_ACCESS_TOKEN }}