Skip to content

Activate workflow for automated version increments in pull-requests for eclipse.platform.releng #2991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/workflows/callFreezePeriodCheck.yml

This file was deleted.

10 changes: 9 additions & 1 deletion .github/workflows/checkVersions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ on:
type: string
required: false
default: ''
working-directory:
description: Optional additional arguments to specify the directory in which maven build is executed
type: string
required: false
default: '.'

permissions: {} # all none

Expand Down Expand Up @@ -56,6 +61,7 @@ jobs:
with:
attempt_delay: 200
attempt_limit: 10
current_path: ${{ inputs.working-directory }}
command: >
mvn verify ${{ inputs.extra-maven-args }} -DskipTests -Dcompare-version-with-baselines.skip=false
org.eclipse.tycho:tycho-versions-plugin:bump-versions -Dtycho.bump-versions.increment=100
Expand All @@ -72,9 +78,11 @@ jobs:
# Relevant files were staged, i.e. some version were changed

# Read 'releaseNumberSDK' property as stream version
mvn help:evaluate -Dexpression=releaseNumberSDK --quiet '-Doutput=releaseNumberSDK-value.txt'
pushd ${{ inputs.working-directory }}
mvn help:evaluate -Dexpression=releaseNumberSDK ${{ inputs.extra-maven-args }} --quiet '-Doutput=releaseNumberSDK-value.txt'
streamVersion=$(<releaseNumberSDK-value.txt)
rm -f releaseNumberSDK-value.txt
popd

git config --global user.email '${{ inputs.botMail }}'
git config --global user.name '${{ inputs.botName }}'
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Fast running checks for pull-requests

name: Pull-Request Checks
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
branches: [ master ]

jobs:
check-freeze-period:
uses: ./.github/workflows/verifyFreezePeriod.yml
check-merge-commits:
uses: ./.github/workflows/checkMergeCommits.yml
check-versions:
# Run this check only for PRs from forks and not for changes from bots created on branches in this repository
if: github.event.pull_request.head.repo.full_name != github.repository
uses: ./.github/workflows/checkVersions.yml
with:
botName: Eclipse Platform Bot
botMail: [email protected]
# Only check 'eclipse.platform.releng' projects
working-directory: 'eclipse.platform.releng'
extra-maven-args: '-Pbuild-individual-bundles'
14 changes: 14 additions & 0 deletions .github/workflows/version-increments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish Version Check Results

on:
workflow_run:
workflows: [ 'Pull-Request Checks' ]
types: [ completed ]

jobs:
publish-version-check-results:
uses: ./.github/workflows/publishVersionCheckResults.yml
with:
botGithubId: eclipse-platform-bot
secrets:
githubBotPAT: ${{ secrets.PLATFORM_BOT_PAT }}
Loading