Fix/verfy pr (#2518)

* Stale workflow only on hawkbit project

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>

* Fix verifying PR - checkout from the repo

---------

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-06-30 09:02:31 +03:00
committed by GitHub
parent f99de6aa92
commit 2a5f47df3f
3 changed files with 9 additions and 2 deletions

View File

@@ -3,6 +3,10 @@ name: Verify (Reusable Workflow)
on:
workflow_call:
inputs:
repository:
description: 'The repository to checkout, e.g. eclipse-hawkbit/hawkbit'
type: string
default: 'eclipse-hawkbit/hawkbit'
ref:
description: 'The branch, tag or SHA to checkout, e.g. master'
type: string
@@ -30,6 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
- name: Set up JDK

View File

@@ -22,5 +22,6 @@ jobs:
verify-hibernate:
uses: ./.github/workflows/reusable_workflow_verify.yaml
with:
ref: ${{ github.event_name == 'push' && github.ref || github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.event_name == 'workflow_dispatch' && github.ref }}
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repository || github.repositor }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }}
maven_properties: '-Djpa.vendor=hibernate -Dlogging.level.org.hibernate.collection.spi.AbstractPersistentCollection=ERROR'

View File

@@ -22,4 +22,5 @@ jobs:
verify:
uses: ./.github/workflows/reusable_workflow_verify.yaml
with:
ref: ${{ github.event_name == 'push' && github.ref || github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.event_name == 'workflow_dispatch' && github.ref }}
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repository || github.repositor }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }}