Skip to content

Commit 3c62d82

Browse files
committed
[Build] Activate workflow for automated version increments
Set up for this repository the workflow for automated version increments in pull-requests added via eclipse-platform#2352
1 parent fe2e624 commit 3c62d82

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/workflows/checkVersions.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
description: The name of the bot that adds the necessary version increment changes
1212
type: string
1313
required: true
14+
submodules:
15+
description: |
16+
Whether to checkout submodules: `true` to checkout submodules or `recursive` to recursively checkout submodules.
17+
The value is passed unchanged to the github/actions/checkout action: https://github.com/actions/checkout#usage
18+
type: string
19+
required: false
20+
default: ''
1421
extra-setup-command:
1522
description: Optional command executed initially to perform additional setup of the build environment
1623
type: string
@@ -33,6 +40,7 @@ jobs:
3340
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3441
with:
3542
fetch-depth: 0 # required for jgit timestamp provider to work
43+
submodules: ${{ inputs.submodules }}
3644

3745
- name: Set up Java
3846
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1

.github/workflows/pr-checks.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Fast running checks for pull-requests
2+
3+
name: Pull-Request Checks
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
on:
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
check-versions:
14+
# Run this check only for PRs from forks and not for changes from bots created on branches in this repository
15+
if: github.event.pull_request.head.repo.full_name != github.repository
16+
uses: ./.github/workflows/checkVersions.yml
17+
with:
18+
botName: Eclipse Platform Bot
19+
20+
submodules: true
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish Version Check Results
2+
3+
on:
4+
workflow_run:
5+
workflows: [ 'Pull-Request Checks' ]
6+
types: [ completed ]
7+
8+
jobs:
9+
publish-version-check-results:
10+
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/publishVersionCheckResults.yml@master
11+
with:
12+
botGithubId: eclipse-platform-bot
13+
secrets:
14+
githubBotPAT: ${{ secrets.PLATFORM_BOT_PAT }}

0 commit comments

Comments
 (0)