mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
GitHub Actions workflow improvements (#2557)
* Checkout merged branches for pull requests * Echo the mvn command used for builds * Use more functions in maven-build so it is similar to what will be used for add-on builds Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -24,8 +24,15 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
if: github.head_ref == ''
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout merge
|
||||
if: github.head_ref != ''
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: refs/pull/${{github.event.pull_request.number}}/merge
|
||||
|
||||
- name: Set up Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user