diff --git a/.github/workflows/reusable_workflow_verify.yaml b/.github/workflows/reusable_workflow_verify.yaml index 082289374..6b454fa66 100644 --- a/.github/workflows/reusable_workflow_verify.yaml +++ b/.github/workflows/reusable_workflow_verify.yaml @@ -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 diff --git a/.github/workflows/verify-hibernate.yaml b/.github/workflows/verify-hibernate.yaml index c596e9daa..107ba1c54 100644 --- a/.github/workflows/verify-hibernate.yaml +++ b/.github/workflows/verify-hibernate.yaml @@ -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' \ No newline at end of file diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index defd11679..abdaa56a6 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -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 }} \ No newline at end of file + 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 }} \ No newline at end of file