Skip to content

Commit 62045f2

Browse files
committed
CI: start the CI on updated packages automatically
1 parent 78a1fdc commit 62045f2

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.github/workflows/dependencies.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ jobs:
3636
title: ${{ steps.update.outputs.pr-title }}
3737
body-path: ${{ steps.update.outputs.pr-body-path }}
3838

39+
- if: steps.update.outputs.has-changes == 'true' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
40+
name: Trigger CI
41+
shell: pwsh
42+
run: >
43+
gh workflow run Main --ref $env:BRANCH_NAME &&
44+
gh workflow run Release --ref $env:BRANCH_NAME
45+
env:
46+
BRANCH_NAME: ${{ steps.update.outputs.branch-name }}
47+
3948
powershell-modules:
4049
permissions:
4150
contents: write
@@ -61,3 +70,12 @@ jobs:
6170
commit-message: ${{ steps.update.outputs.commit-message }}
6271
title: ${{ steps.update.outputs.pr-title }}
6372
body-path: ${{ steps.update.outputs.pr-body-path }}
73+
74+
- if: steps.update.outputs.has-changes == 'true' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
75+
name: Trigger CI
76+
shell: pwsh
77+
run: >
78+
gh workflow run Main --ref $env:BRANCH_NAME &&
79+
gh workflow run Release --ref $env:BRANCH_NAME
80+
env:
81+
BRANCH_NAME: ${{ steps.update.outputs.branch-name }}

intellij-updater.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
"field": "intellijPreview",
1212
"kind": "intellij-idea-community",
1313
"versionFlavor": "eap"
14-
}],
15-
"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+
}]
1615
}

src/scripts/Update-Dependencies.ps1

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,6 @@ if ($hasChanges)
137137
"@
138138
}
139139
$prBody = @'
140-
## Maintainer Note
141-
> [!WARNING]
142-
> This PR will not trigger CI by default. Please close it and reopen manually to trigger the CI.
143-
>
144-
> Unfortunately, this is a consequence of the current GitHub Action security model (by default, PRs created by bots
145-
> aren't allowed to trigger other bots).
146-
147140
The updated packages' release notes follow below.
148141
149142
'@ + $updateReleaseNoteStrings -join "`n"

0 commit comments

Comments
 (0)