From 87f85fa5b911a6334a5398300f632ad16f66665b Mon Sep 17 00:00:00 2001 From: Julia Pampus Date: Thu, 27 Feb 2025 08:42:10 +0100 Subject: [PATCH] fix: change PR check to reusable workflow --- .github/workflows/_pr-check.yml | 10 ++++++++++ .github/workflows/scan-pr-title.yml | 4 +--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/_pr-check.yml diff --git a/.github/workflows/_pr-check.yml b/.github/workflows/_pr-check.yml new file mode 100644 index 0000000..50d8d04 --- /dev/null +++ b/.github/workflows/_pr-check.yml @@ -0,0 +1,10 @@ +name: Check Pull Request + +on: + pull_request: + branches: [ main ] + types: [opened, edited, synchronize, reopened] + +jobs: + trigger-workflow: + uses: eclipse-dataspace-protocol-base/.github/.github/workflows/scan-pr-title.yml@main \ No newline at end of file diff --git a/.github/workflows/scan-pr-title.yml b/.github/workflows/scan-pr-title.yml index 6cb1e16..4e47d28 100644 --- a/.github/workflows/scan-pr-title.yml +++ b/.github/workflows/scan-pr-title.yml @@ -1,9 +1,7 @@ name: Scan PR Title on: - pull_request: - branches: [ main ] - types: [ opened, edited, synchronize, reopened ] + workflow_call: jobs: check-pull-request-title: