Skip to content

Commit

Permalink
JNG-4521 Release udo runtime core jsl (#143)
Browse files Browse the repository at this point in the history
* JNG-4521 Add to pom.xml the missing plugins, profiles, update java version, eliminate warnings because set-output

* logback file debug => warn

* Remove Send message to skype

* Logback warn to info
  • Loading branch information
gaborflorian authored Mar 9, 2023
1 parent cc113ad commit 7571e72
Show file tree
Hide file tree
Showing 11 changed files with 90 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2-feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ labels: "type: feature"
<!-- Please do your best to fill out all of the sections below! -->
<!-- Use this issue type for concrete suggestions, otherwise, open a discussion type issue instead. -->

- [ ] I'd be willing to implement this feature ([contributing guide](https://github.com/BlackBeltTechnology/judo-runtime-core-jsl/blob/develop/CONTRIBUTING.md))
- [ ] I'd be willing to implement this feature ([contributing guide](https://github.com/BlackBeltTechnology/judo-runtime-core-jsl/blob/develop/CONTRIBUTING.adoc))

## Description

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/build-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ jobs:

steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: 🛠️ Project context
id: context
uses: zero88/gh-project-context@v1.1
uses: zero88/gh-project-context@v1.2

- name: 🛠️ Set up JDK 11
uses: actions/setup-java@v2
- name: 🛠️ Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'zulu'

- name: 🧹 Remove settings.xml
run: rm $HOME/.m2/settings.xml || true

- name: 🛠️ Setup maven settings.xml
uses: whelk-io/maven-settings-xml-action@v20
uses: whelk-io/maven-settings-xml-action@v21
with:
servers: >
[
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
echo "Version from POM: ${POM_VERSION}"
echo "Base version from POM: ${BASE_VERSION}"
echo "Building version: ${VERSION_NUMBER}"
echo "::set-output name=version::${VERSION_NUMBER}"
echo "version=${VERSION_NUMBER}" >> $GITHUB_OUTPUT
##########################
# MAVEN BUILD START
Expand All @@ -110,12 +110,12 @@ jobs:
if [ "${{ job.status }}" == "canceled" ]; then
message=":x: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
fi
echo "::set-output name=message::${message}"
echo "message=${message}" >> $GITHUB_OUTPUT
- name: 📢 Send message to discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.JUDONG_DISCORD_WEBHOOK }}
title: "Gitub action"
title: "Github action"
description: "${{ steps.message.outputs.message }}"
34 changes: 18 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:

steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: 🛠 Project context
- name: 🛠 Project context
id: context
uses: zero88/gh-project-context@v1.1
uses: zero88/gh-project-context@v1.2

- name: 🛠 Set up JDK 11
uses: actions/setup-java@v2
- name: 🛠 Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'zulu'

- name: 🔢 Get the current PR number
Expand All @@ -44,9 +44,9 @@ jobs:

- name: 🧹 Remove settings.xml
run: rm $HOME/.m2/settings.xml || true

- name: 🛠️ Setup maven settings.xml
uses: whelk-io/maven-settings-xml-action@v20
uses: whelk-io/maven-settings-xml-action@v21
with:
servers: >
[
Expand All @@ -66,13 +66,14 @@ jobs:
"password": "${{ secrets.SONATYPE_PASSWORD }}"
}
]
mirrors: >
[
{
"id": "judong-nexus-mirror",
"mirrorOf": "*",
"url": "https://nexus.judo.technology/repository/maven-judong/"
}
}
]
- name: 🔢 Calculate version number
Expand All @@ -93,7 +94,7 @@ jobs:
echo "Version from POM: ${POM_VERSION}"
echo "Base version from POM: ${BASE_VERSION}"
echo "Building version: ${VERSION_NUMBER}"
echo "::set-output name=version::${VERSION_NUMBER}"
echo "version=${VERSION_NUMBER}" >> $GITHUB_OUTPUT
##########################
# MAVEN BUILD START
Expand Down Expand Up @@ -122,7 +123,8 @@ jobs:
-P"sign-artifacts,release-judong" \
deploy
- name: 🎁 Deploy with Maven to central
# Phase 2 - Build and deploy to maven central
- name: 🎁 Deploy with Maven (central)
if: ${{ always() && startsWith(github.head_ref, 'release') && job.status == 'success' }}
run: |-
./mvnw -B -Dstyle.color=always \
Expand All @@ -147,7 +149,7 @@ jobs:
##########################

- name: 📌 Create version tag
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
github-token: ${{ secrets.OSS_PAT }}
script: |
Expand All @@ -163,7 +165,7 @@ jobs:
${{ always() &&
(startsWith(github.head_ref, 'increment') || startsWith(github.head_ref, 'release')) &&
job.status == 'success' }}
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
github-token: ${{ secrets.OSS_PAT }}
script: |
Expand Down Expand Up @@ -211,12 +213,12 @@ jobs:
if [ "${{ job.status }}" == "canceled" ]; then
message=":x: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
fi
echo "::set-output name=message::${message}"
echo "message=${message}" >> $GITHUB_OUTPUT
- name: 📢 Send message to discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.JUDONG_DISCORD_WEBHOOK }}
title: "Gitub action"
title: "Github action"
description: "${{ steps.message.outputs.message }}"
16 changes: 8 additions & 8 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ jobs:

- name: 🛠️ Project context
id: context
uses: zero88/gh-project-context@v1.1
uses: zero88/gh-project-context@v1.2

- name: 🛠️ Set up JDK 11
uses: actions/setup-java@v2
- name: 🛠️ Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'zulu'

- name: 🧹 Remove settings.xml
run: rm $HOME/.m2/settings.xml || true

- name: 🛠️ Setup maven settings.xml
uses: whelk-io/maven-settings-xml-action@v20
uses: whelk-io/maven-settings-xml-action@v21
with:
servers: >
[
Expand Down Expand Up @@ -75,8 +75,8 @@ jobs:
VERSION_NUMBER=${BASE_VERSION}
echo "Base version from POM: $BASE_VERSION"
echo "Building version: ${VERSION_NUMBER}"
echo "::set-output name=version::${VERSION_NUMBER}"
echo "::set-output name=base-version::${BASE_VERSION}"
echo "version=${VERSION_NUMBER}" >> $GITHUB_OUTPUT
echo "base-version=${BASE_VERSION}" >> $GITHUB_OUTPUT
- name: ⏭️ Increase version number
id: next_version
Expand All @@ -98,7 +98,7 @@ jobs:
NEXT_VERSION="${NEXT_VERSION}-SNAPSHOT"
fi
echo "Next version is: $NEXT_VERSION"
echo "::set-output name=version::${NEXT_VERSION}"
echo "version=${NEXT_VERSION}" >> $GITHUB_OUTPUT
- name: Set next version
run: |-
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/create-release-on-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
with:
fetch-depth: 0

- name: 🛠️ Set up JDK 11
uses: actions/setup-java@v2
- name: 🛠️ Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'zulu'

- name: 🧹 Remove settings.xml
run: rm $HOME/.m2/settings.xml || true

- name: 🛠️ Setup maven settings.xml
uses: whelk-io/maven-settings-xml-action@v20
uses: whelk-io/maven-settings-xml-action@v21
with:
servers: >
[
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
fi
echo "Version from POM: ${POM_VERSION}"
echo "Base version from POM: ${BASE_VERSION}"
echo "::set-output name=version::${BASE_VERSION}"
echo "version=${BASE_VERSION}" >> $GITHUB_OUTPUT
- name: 🏗️ Build Changelog
id: create_changelog
Expand All @@ -98,5 +98,5 @@ jobs:
if: ${{ always() && job.status == 'failure' }}
with:
webhook: ${{ secrets.JUDONG_DISCORD_WEBHOOK }}
title: "Gitub action"
title: "Github action"
description: ":x: Could not trigger github release! https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
19 changes: 6 additions & 13 deletions .github/workflows/create-release-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
run: echo "$GITHUB_CONTEXT"

- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Project context
id: context
uses: zero88/gh-project-context@v1.1
uses: zero88/gh-project-context@v1.2

- name: Print git references
run: |-
Expand All @@ -35,8 +35,8 @@ jobs:
version=$(echo ${{ github.ref }} | cut -d/ -f4)
branch=$(echo ${{ github.event.base_ref }} | cut -d/ -f3)
echo "Version: $version"
echo "::set-output name=version::$version"
echo "::set-output name=branch::$branch"
echo "version=$version" >> $GITHUB_OUTPUT
echo "branch=$branch" >> $GITHUB_OUTPUT
- name: Create release note
uses: ncipollo/release-action@v1
Expand Down Expand Up @@ -76,19 +76,12 @@ jobs:
message=":cross_mark: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
message="${message} Release notes canceled"
fi
echo "::set-output name=message::${message}"
echo "message=${message}" >> $GITHUB_OUTPUT
- name: Write message to file
run: |-
echo "${{ steps.message.outputs.message }}"
echo "${{ steps.message.outputs.message }}" > build.msg
# - name: Send message to skype
# uses: Eloco/docker-action-send-skype@v2
# if: always()
# with:
# skype_username: ${{ secrets.SKYPE_USERNAME }}
# skype_password: ${{ secrets.SKYPE_PASSWORD }}
# skype_ids: 19:[email protected]
# send_msg_path: build.msg
2 changes: 1 addition & 1 deletion .github/workflows/jira-description-to-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
if: ${{ always() && job.status == 'failure' }}
with:
webhook: ${{ secrets.JUDONG_DISCORD_WEBHOOK }}
title: "Gitub action"
title: "Github action"
description: ":x: Please add issue number to PR message! https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"

6 changes: 3 additions & 3 deletions .github/workflows/merge-pr-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
run: |
pr=$(echo ${{ github.ref }} | cut -d/ -f4)
echo "PR: $pr"
echo "::set-output name=pr::$pr"
echo "pr=$pr" >> $GITHUB_OUTPUT
- name: 🔢 Get version
id: version
run: |
version=$(echo ${{ github.event.base_ref }} | cut -d/ -f3)
echo "Version: $version"
echo "::set-output name=version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
- name: 🧪 Check the version format is in release format
uses: actions-ecosystem/action-regex-match@v2
Expand Down Expand Up @@ -67,5 +67,5 @@ jobs:
if: ${{ always() && job.status == 'failure' }}
with:
webhook: ${{ secrets.JUDONG_DISCORD_WEBHOOK }}
title: "Gitub action"
title: "Github action"
description: ":x: Could not merge PR! https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ on:
type: string
required: false
default: "Auto"
push:
tags:
- 'perform-release-on-*'

jobs:
release:
runs-on: judong
Expand All @@ -33,19 +31,19 @@ jobs:

- name: 🛠️ Project context
id: context
uses: zero88/gh-project-context@v1.1
uses: zero88/gh-project-context@v1.2

- name: 🛠️ Set up JDK 11
uses: actions/setup-java@v2
- name: 🛠️ Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'zulu'

- name: 🧹 Remove settings.xml
run: rm $HOME/.m2/settings.xml || true

- name: 🛠️ Setup maven settings.xml
uses: whelk-io/maven-settings-xml-action@v20
uses: whelk-io/maven-settings-xml-action@v21
with:
servers: >
[
Expand Down Expand Up @@ -94,8 +92,8 @@ jobs:
fi
echo "Base version from POM: $BASE_VERSION"
echo "Building version: ${VERSION_NUMBER}"
echo "::set-output name=version::${VERSION_NUMBER}"
echo "::set-output name=base-version::${BASE_VERSION}"
echo "version=${VERSION_NUMBER}" >> $GITHUB_OUTPUT
echo "base-version=${BASE_VERSION}" >> $GITHUB_OUTPUT
- name: 🔀 Merge master branch to release branch
run: |
Expand Down Expand Up @@ -143,7 +141,7 @@ jobs:
NEXT_VERSION="${NEXT_VERSION}-SNAPSHOT"
fi
echo "Next version is: $NEXT_VERSION"
echo "::set-output name=version::${NEXT_VERSION}"
echo "version=${NEXT_VERSION}" >> $GITHUB_OUTPUT
- name: Set next version
run: |-
Expand Down
2 changes: 1 addition & 1 deletion logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</layout>
</appender>

<root level="debug">
<root level="info">
<appender-ref ref="CONSOLE"/>
</root>

Expand Down
Loading

0 comments on commit 7571e72

Please sign in to comment.