Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKora committed Sep 18, 2023
1 parent 142fc6b commit bea9b07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build and Publish

on:
pull_request:
push:
tags: ['**']
branches: ['**']
tags: ["**"]
branches: ["**"]

jobs:
call-workflow-passing-data:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@ on:
inputs:
release-type:
description: "The scope of the release (major, minor or patch)."
default: "patch"
required: false
type: choice
required: true
default: patch
options:
- patch
- minor
- major

jobs:
call-workflow-passing-data:
name: Java Gradle
uses: bakdata/ci-templates/.github/workflows/java-gradle-release.yaml@v1.4.0
uses: bakdata/ci-templates/.github/workflows/java-gradle-release.yaml@1.33.0
with:
release-type: "${{ github.event.inputs.release-type }}"
release-type: "${{ inputs.release-type }}"
secrets:
github-email: "${{ secrets.GH_EMAIL }}"
github-username: "${{ secrets.GH_USERNAME }}"
Expand Down

0 comments on commit bea9b07

Please sign in to comment.