Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

85 unify naming of actions templates etc #88

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/action-build-image/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build Docker Image"
name: action-build-image
description: "Builds and pushes a docker image"

inputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/action-codeql/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Advanced CodeQL action"
name: "action-codeql"
description: "Scans a repository using provided CodeQL language, buildmode and query scan set"

inputs:
Expand Down
4 changes: 3 additions & 1 deletion .github/actions/action-maven-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Compliance check and build test
name: action-maven-build

inputs:
java-version:
required: false
default: 21
type: string
description: set the java version
app-path:
required: true
type: string
description: path to the pom.xml
outputs:
artifact-name:
description: "name of the artifact upload"
Expand Down
12 changes: 11 additions & 1 deletion .github/actions/action-maven-release/action.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,47 @@
name: Maven Release
name: "action-maven-release"

inputs:
java-version:
required: false
default: 21
type: string
description: configure the java version
app-path:
required: true
type: string
description: path where the pom.xml is
releaseVersion:
required: true
type: string
description: version which will be released
developmentVersion:
required: true
type: string
description: next version with snapshot
skipDeployment:
default: true
type: boolean
description: skip deployment to maven central
SIGN_KEY_PASS:
required: true
type: string
description: env variable for GPG private key passphrase
CENTRAL_USERNAME:
required: true
type: string
description: env variable for username in deploy
CENTRAL_PASSWORD:
required: true
type: string
description: env variable for token in deploy
GDP_PRIVATE_KEY:
required: true
type: string
description: Value of the GPG private key to import

outputs:
MVN_ARTIFACT_ID:
description: "artifact name from pom"
value: ${{ steps.maven-release-step.outputs.MVN_ARTIFACT_ID }}
artifact-name:
description: "name of the artifact upload"
Expand Down
5 changes: 3 additions & 2 deletions .github/actions/action-npm-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Compliance check and build test

name: "action-npm-build"
inputs:
node-version:
required: false
default: "22.11.0"
type: string
description: node version
app-path:
required: true
type: string
description: path where the package.json is located
outputs:
artifact-name:
description: "name of the artifact upload"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
# https://vitepress.dev/guide/deploy#github-pages
name: Deploy Pages
name: deploy-pages
on:
workflow_call:
inputs:
sub-path:
required: false
default: "./docs"
type: string
description: location where the vitepress project is located
node-version:
required: false
default: "22"
type: string
description: node version
build-cmd:
required: false
default: "build"
type: string
description: change the build command, for use of vuepress
dist-path:
required: false
default: ".vitepress/dist"
type: string
description: output path of vite, which should be uploaded to github pages

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/deploy-docs.properties.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Deploy docs github pages",
"name": "deploy-docs",
"description": "Deploys the docs folder in github pages"
}
2 changes: 1 addition & 1 deletion workflow-templates/maven-node-build.properties.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Maven-Node-Build",
"description": "Bauen eines Refarch Apigateway oder Backend"
"description": "Build a Refarch Apigateway or Backend"
}
6 changes: 3 additions & 3 deletions workflow-templates/maven-node-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
strategy:
fail-fast: false
matrix:
include: # hier müssen die Pfade angegeben werden
- app-path: # z. B. refarch-eai
- app-path: # z. B. refarch-webcomponent
include: # here you may change the path
- app-path: # eg. refarch-eai
- app-path: # eg. refarch-webcomponent
steps:
- uses: actions/checkout@v4
- if: ${{hashFiles(format('./{0}/package.json', matrix.app-path))!=null}}
Expand Down