From 09f62d442514353058b87625c0118608dc35230e Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Thu, 26 Sep 2024 22:14:12 +0200 Subject: [PATCH 1/2] [Build] Activate workflow for automated version increments Set up for this repository the workflow for automated version increments in pull-requests added via https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/pull/2352 --- .github/workflows/pr-checks.yml | 17 +++++++++++++++++ .github/workflows/version-increments.yml | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/pr-checks.yml create mode 100644 .github/workflows/version-increments.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000000..83c07a9da0 --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,17 @@ +# 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-versions: + uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/checkVersions.yml@master + with: + botName: Eclipse JDT Bot + botMail: jdt-bot@eclipse.org diff --git a/.github/workflows/version-increments.yml b/.github/workflows/version-increments.yml new file mode 100644 index 0000000000..73f7a18fea --- /dev/null +++ b/.github/workflows/version-increments.yml @@ -0,0 +1,14 @@ +name: Publish Version Check Results + +on: + workflow_run: + workflows: [ 'Pull-Request Checks' ] + types: [ completed ] + +jobs: + publish-version-check-results: + uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/publishVersionCheckResults.yml@master + with: + botGithubId: eclipse-jdt-bot + secrets: + githubBotPAT: ${{ secrets.JDT_BOT_PAT }} From 06ae5fa29056bb1438b7ab487402ca627733df34 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Thu, 26 Sep 2024 22:19:06 +0200 Subject: [PATCH 2/2] [Build] Move all fast pull-request checks to pr-checks.yml --- .github/workflows/checkMergeCommits.yml | 18 ------------------ .github/workflows/pr-checks.yml | 9 +++++++-- .github/workflows/verifyFreezePeriod.yml | 12 ------------ 3 files changed, 7 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/checkMergeCommits.yml delete mode 100644 .github/workflows/verifyFreezePeriod.yml diff --git a/.github/workflows/checkMergeCommits.yml b/.github/workflows/checkMergeCommits.yml deleted file mode 100644 index 371c075d8d..0000000000 --- a/.github/workflows/checkMergeCommits.yml +++ /dev/null @@ -1,18 +0,0 @@ -on: pull_request - -name: Check for merge commits - -permissions: - pull-requests: read - -jobs: - message-check: - name: Block Merge Commits - - runs-on: ubuntu-latest - - steps: - - name: Block Merge Commits - uses: Morishiri/block-merge-commits-action@a4554c78def8d874966a8d1e20e2971121443755 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 83c07a9da0..bff7573f5a 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -6,11 +6,16 @@ concurrency: cancel-in-progress: true on: - pull_request: - branches: [ master ] + pull_request jobs: + check-freeze-period: + if: github.base_ref == 'master' + uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/verifyFreezePeriod.yml@master + check-merge-commits: + uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/checkMergeCommits.yml@master check-versions: + if: github.base_ref == 'master' uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/checkVersions.yml@master with: botName: Eclipse JDT Bot diff --git a/.github/workflows/verifyFreezePeriod.yml b/.github/workflows/verifyFreezePeriod.yml deleted file mode 100644 index fed6cc53c5..0000000000 --- a/.github/workflows/verifyFreezePeriod.yml +++ /dev/null @@ -1,12 +0,0 @@ -# This workflow calls the Code-Freeze-Period check - -name: Check Code Freeze Period - -on: - pull_request: - branches: - - 'master' - -jobs: - check-freeze-period: - uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/verifyFreezePeriod.yml@master