-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates all actions to the latest version using node.js 16. The label action was replaced by a maintained action.
- Loading branch information
Showing
15 changed files
with
261 additions
and
247 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @qbicsoftware/itss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates_configs: | ||
- package_manager: "java:maven" | ||
directory: "/" | ||
update_schedule: "daily" | ||
target-branch: development | ||
default_labels: "dependabot" | ||
commit-message: | ||
prefix: "[DEPENDABOT]" | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "maven" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
target-branch: "development" | ||
labels: | ||
- "dependabot" | ||
commit-message: | ||
prefix: "[DEPENDABOT]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
feature: | ||
- any: | ||
- head-branch: [ '^feature' ] | ||
fix: | ||
- any: | ||
- head-branch: [ '^fix', '^hotfix' ] | ||
chore: | ||
- any: | ||
- head-branch: [ '^chore', '^documentation', '^docs', '^ci', '^refactor' ] | ||
release: | ||
- all: | ||
- base-branch: [ 'main', 'master' ] | ||
- head-branch: [ 'development', 'dev' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
authors: | ||
- JohnnyQ5 | ||
- github-actions | ||
categories: | ||
- title: New Features 🚀 | ||
labels: | ||
- feature | ||
- title: Bugfixes 🪲 | ||
labels: | ||
- fix | ||
- title: Documentation & CI 🪂 | ||
labels: | ||
- chore | ||
- title: Others 🧃 | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
name: Build Maven Package | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ main, master ] | ||
|
||
jobs: | ||
build: | ||
package: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
|
||
distribution: 'zulu' | ||
java-version: '8' | ||
- name: Load local Maven repository cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Run mvn package | ||
run: mvn -B package --file pom.xml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
name: Create Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
versionTag: | ||
description: 'Version Tag (semantic version)' | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '8' | ||
settings-path: ${{ github.workspace }} | ||
|
||
- name: Load local Maven repository cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "JohnnyQ5" | ||
- name: Set version in Maven project | ||
run: mvn versions:set -DnewVersion=${{ github.event.inputs.versionTag }} | ||
|
||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
|
||
- name: Create Release Notes | ||
if: ${{ !startsWith(github.ref, 'refs/tags/') | ||
&& !( contains(github.event.inputs.versionTag, 'alpha') | ||
|| contains(github.event.inputs.versionTag, 'beta') | ||
|| contains(github.event.inputs.versionTag, 'rc')) }} | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}} | ||
script: | | ||
await github.request(`POST /repos/${{ github.repository }}/releases`, { | ||
tag_name: "${{ github.event.inputs.versionTag }}", | ||
generate_release_notes: true | ||
}); | ||
- name: Create Pre-Release Notes | ||
if: ${{ !startsWith(github.ref, 'refs/tags/') | ||
&& ( contains(github.event.inputs.versionTag, 'alpha') | ||
|| contains(github.event.inputs.versionTag, 'beta') | ||
|| contains(github.event.inputs.versionTag, 'rc')) }} | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}} | ||
script: | | ||
await github.request(`POST /repos/${{ github.repository }}/releases`, { | ||
tag_name: "${{ github.event.inputs.versionTag }}", | ||
generate_release_notes: true, | ||
prerelease: true | ||
}); | ||
- name: Publish artefact to QBiC Nexus Repository | ||
run: mvn --quiet --settings $GITHUB_WORKSPACE/.github.settings.xml deploy | ||
env: | ||
MAVEN_REPO_USERNAME: ${{ secrets.NEXUS_USERNAME }} | ||
MAVEN_REPO_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | ||
|
||
- name: Switch to new branch | ||
run: git checkout -b release/set-version-to-${{ github.event.inputs.versionTag }} | ||
|
||
- name: Set remote branch | ||
run: git push --set-upstream origin release/set-version-to-${{ github.event.inputs.versionTag }} | ||
|
||
- name: Checkin commit | ||
run: git commit . -m 'Set version to ${{ github.event.inputs.versionTag }}' | ||
|
||
- name: Push to Github | ||
run: git push | ||
|
||
- name: Open PR with version bump | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}} | ||
script: | | ||
await github.request(`POST /repos/${{ github.repository }}/pulls`, { | ||
title: 'Update version to ${{ github.event.inputs.versionTag }}', | ||
head: 'release/set-version-to-${{ github.event.inputs.versionTag }}', | ||
base: 'main' | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.