Skip to content

Commit 09e13cd

Browse files
committed
CI: automatic updates for IntelliJ
1 parent 284666a commit 09e13cd

File tree

3 files changed

+77
-28
lines changed

3 files changed

+77
-28
lines changed

.github/workflows/dependencies.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: "Dependency Checker"
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *' # Every day
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
workflow_dispatch:
12+
13+
jobs:
14+
intellij:
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
19+
runs-on: ubuntu-22.04
20+
timeout-minutes: 15
21+
steps:
22+
- name: "Check out the sources"
23+
uses: actions/checkout@v4
24+
25+
- id: update
26+
uses: ForNeVeR/intellij-updater@v1
27+
name: "Update the dependency versions"
28+
29+
- if: steps.update.outputs.has-changes == 'true' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
30+
name: "Create a PR"
31+
uses: peter-evans/create-pull-request@v6
32+
with:
33+
branch: ${{ steps.update.outputs.branch-name }}
34+
author: "intellij-powershell automation <[email protected]>"
35+
commit-message: ${{ steps.update.outputs.commit-message }}
36+
title: ${{ steps.update.outputs.pr-title }}
37+
body-path: ${{ steps.update.outputs.pr-body-path }}+
38+
39+
powershell-modules:
40+
permissions:
41+
contents: write
42+
pull-requests: write
43+
44+
runs-on: ubuntu-22.04
45+
timeout-minutes: 15
46+
steps:
47+
- name: "Check out the sources"
48+
uses: actions/checkout@v4
49+
50+
- id: update
51+
name: "Update the dependency versions"
52+
shell: pwsh
53+
run: ./src/scripts/Update-Dependencies.ps1
54+
55+
- if: steps.update.outputs.has-changes == 'true' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
56+
name: "Create a PR"
57+
uses: peter-evans/create-pull-request@v6
58+
with:
59+
branch: ${{ steps.update.outputs.branch-name }}
60+
author: "intellij-powershell automation <[email protected]>"
61+
commit-message: ${{ steps.update.outputs.commit-message }}
62+
title: ${{ steps.update.outputs.pr-title }}
63+
body-path: ${{ steps.update.outputs.pr-body-path }}

.github/workflows/ps-dependencies.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

intellij-updater.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"updates": [{
3+
"file": "gradle/libs.versions.toml",
4+
"field": "intellij",
5+
"kind": "intellij-idea-community",
6+
"versionFlavor": "release"
7+
}, {
8+
"file": "gradle/libs.versions.toml",
9+
"field": "intellijPreview",
10+
"kind": "intellij-idea-community",
11+
"versionFlavor": "eap"
12+
}],
13+
"prBodyPrefix": "## Maintainer Note\n> [!WARNING]\n> This PR will not trigger CI by default. Please **close it and reopen manually** to trigger the CI.\n>\n> Unfortunately, this is a consequence of the current GitHub Action security model (by default, PRs created automatically aren't allowed to trigger other automation)."
14+
}

0 commit comments

Comments
 (0)