Skip to content

Commit 612a581

Browse files
Automatic JetBrains update script (#19634)
* Store ide configmap in a json file * [ide-service] make sure that latest stable is always listed in versions * Proper order * Remove previous jetbrains versions upgrade comment * Use installer versions where applicable * fix goland templates * JetBrains update script * Updates with the script * unify yaml parser * Add to nightly CI * SImplify diff checking * Proper errors and path resolving * merge the two scripts * update ci * consistent casing * name update --------- Co-authored-by: Anton Kosyakov <[email protected]>
1 parent 56dfb6f commit 612a581

File tree

6 files changed

+367
-176
lines changed

6 files changed

+367
-176
lines changed

.github/workflows/jetbrains-updates.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,27 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
- name: Install dependencies
14+
run: |
15+
cd ./components/ide/jetbrains/image/gha-update-image
16+
yarn
17+
npm i -g bun
1318
- name: Check for updates
1419
run: |
15-
cd ./components/ide/jetbrains/image/gha-update-image
16-
yarn install
17-
node index.js
18-
git diff
20+
cd ./components/ide/jetbrains/image/gha-update-image
21+
bun run index.ts
22+
git diff
1923
2024
- name: Detect file changes
2125
id: changes
2226
run: |
23-
echo "::set-output name=gradle-stable::$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep backend-plugin/gradle-stable.properties$ | xargs)"
24-
echo "::set-output name=workspaceYaml::$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep WORKSPACE.yaml$ | xargs)"
27+
if [ $(git status --porcelain | wc -l) -gt 0 ]; then
28+
echo "dirty=true" >> $GITHUB_OUTPUT
29+
else
30+
echo "dirty=false" >> $GITHUB_OUTPUT
31+
fi
2532
- name: Create Pull Request
26-
if: ${{steps.changes.outputs.gradle-stable || steps.changes.outputs.workspaceYaml}}
33+
if: ${{steps.changes.outputs.dirty}}
2734
uses: peter-evans/create-pull-request@v4
2835
with:
2936
title: "[JetBrains] Update IDE images to new build version"

components/ide/jetbrains/image/gha-update-image/index.js

-156
This file was deleted.

0 commit comments

Comments
 (0)