File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 33
44name : Java CI with Maven
55
6- on : [push, pull_request]
6+ on :
7+ push :
8+ branches :
9+ - ' **'
10+ pull_request :
711
812env :
913 MAVEN_ARGS : ' -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
2731 - name : Determine PR source branch and fork repository
2832 id : vars
2933 run : |
34+ # Skip tag pushes entirely
35+ if [[ "$GITHUB_EVENT_NAME" == "push" && "$GITHUB_REF" != refs/heads/* ]]; then
36+ echo "Not a branch push ($GITHUB_REF). Exiting."
37+ exit 0
38+ fi
39+
3040 # Set default FORK_REPO and BRANCH_NAME values.
31- BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF##*/} }"
41+ BRANCH_NAME="${GITHUB_HEAD_REF:-$GITHUB_REF_NAME }"
3242
3343 if [[ "$GITHUB_EVENT_NAME" == "push" && "$GITHUB_REPOSITORY" == "informatici/openhospital-api" ]]; then
3444 # For pushes to the main repository, default to the main core repo
Original file line number Diff line number Diff line change 1818
1919 <properties >
2020 <packaging .type>jar</packaging .type>
21- <oh-core .version>1.14.2-SNAPSHOT </oh-core .version>
21+ <oh-core .version>1.15.0 </oh-core .version>
2222 <java .version>17</java .version>
2323 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
2424 <license .maven.plugin.version>5.0.0</license .maven.plugin.version>
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ appender.console.layout.pattern = [%d{dd/MMM/yyyy HH:mm:ss}] [%X{OHUserGroup}:%X
1313# File Appender (with classes), daily rotation
1414appender.rolling.type = RollingFile
1515appender.rolling.name = RollingFile
16- appender.rolling.fileName= LOG_DEST/openhospital.log
17- appender.rolling.filePattern= LOG_DEST/openhospital.log .%d{yyyy-MM-dd}
16+ appender.rolling.fileName= LOG_DEST
17+ appender.rolling.filePattern= LOG_DEST.%d{yyyy-MM-dd}
1818appender.rolling.layout.type = PatternLayout
1919appender.rolling.layout.pattern = [%d{dd/MMM/yyyy HH:mm:ss}] [%X{OHUserGroup}:%X{OHUser}] %-p - %m (%l)%n
2020appender.rolling.policies.type = Policies
You can’t perform that action at this time.
0 commit comments