mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
* [GHA] Sign off PRs as openHAB bot Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
67 lines
2.2 KiB
YAML
67 lines
2.2 KiB
YAML
name: Resolve itest dependencies
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 19 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
resolve:
|
|
name: Resolve itest dependencies
|
|
runs-on: 'ubuntu-24.04'
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
# typical duration is ~15min, set twice the amount as limit (default is 6h)
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Java 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
|
|
- name: Set up Cache
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: |
|
|
~/.m2/repository
|
|
!~/.m2/repository/org/openhab
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-maven-
|
|
|
|
- name: Build and resolve dependencies
|
|
id: build
|
|
# call mvnw directly to avoid filtering of the log by the wrapper,
|
|
# use more cores, safe to do so as we skip tests (which might depend on load)
|
|
run: './mvnw verify -B -T 2.5C -U -DskipChecks -DskipTests -DwithResolver'
|
|
env:
|
|
MAVEN_OPTS: >-
|
|
-Xmx2g
|
|
-Dmaven.wagon.http.retryHandler.count=5
|
|
-Dmaven.wagon.httpconnectionManager.ttlSeconds=25
|
|
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
|
|
|
- name: Show Resolver Status
|
|
run: |
|
|
git branch -v
|
|
git status
|
|
git diff
|
|
|
|
- name: Open PR if changed
|
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # 8.1.1
|
|
with:
|
|
commit-message: "Resolve itest dependencies"
|
|
title: "Resolve itest dependencies"
|
|
body: "PR created by workflow run (resolver.yml)\n\nCI is disabled by default for PRs created by workflow runs. After reviewing the changes, use Close and Reopen to run the CI."
|
|
branch: "gha/resolver/${{ github.ref_name }}"
|
|
author: openhab-bot <bot@openhab.org>
|
|
committer: openhab-bot <bot@openhab.org>
|
|
delete-branch: true
|
|
# labels: infrastructure
|
|
signoff: true
|