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:
@@ -3,6 +3,10 @@ name: Verify (Reusable Workflow)
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
repository:
|
||||||
|
description: 'The repository to checkout, e.g. eclipse-hawkbit/hawkbit'
|
||||||
|
type: string
|
||||||
|
default: 'eclipse-hawkbit/hawkbit'
|
||||||
ref:
|
ref:
|
||||||
description: 'The branch, tag or SHA to checkout, e.g. master'
|
description: 'The branch, tag or SHA to checkout, e.g. master'
|
||||||
type: string
|
type: string
|
||||||
@@ -30,6 +34,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
repository: ${{ inputs.repository }}
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
|
|||||||
3
.github/workflows/verify-hibernate.yaml
vendored
3
.github/workflows/verify-hibernate.yaml
vendored
@@ -22,5 +22,6 @@ jobs:
|
|||||||
verify-hibernate:
|
verify-hibernate:
|
||||||
uses: ./.github/workflows/reusable_workflow_verify.yaml
|
uses: ./.github/workflows/reusable_workflow_verify.yaml
|
||||||
with:
|
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'
|
maven_properties: '-Djpa.vendor=hibernate -Dlogging.level.org.hibernate.collection.spi.AbstractPersistentCollection=ERROR'
|
||||||
3
.github/workflows/verify.yaml
vendored
3
.github/workflows/verify.yaml
vendored
@@ -22,4 +22,5 @@ jobs:
|
|||||||
verify:
|
verify:
|
||||||
uses: ./.github/workflows/reusable_workflow_verify.yaml
|
uses: ./.github/workflows/reusable_workflow_verify.yaml
|
||||||
with:
|
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 }}
|
||||||
Reference in New Issue
Block a user