Skip to content

Commit

Permalink
Improve workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierSegoviaCordoba committed Feb 7, 2024
1 parent c27f634 commit 4d6f8ee
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 17 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build-kotlin-dispatcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,40 @@ name: build-kotlin-dispatcher
on:
workflow_dispatch:
inputs:
gradle-args:
gradle_args:
description: 'Gradle args for every step'
default: ''
required: false
type: string
deploy-docs:
deploy_docs:
description: 'Deploy docs to GitHub Pages'
default: false
required: false
type: boolean
publish-all-docs:
publish_all_docs:
description: 'Publish all docs instead of only API docs and reports'
required: false
default: false
type: boolean
publish-snapshot-tag-prefix:
publish_snapshot_tag_prefix:
description: 'Publish snapshot based on a custom tag prefix'
default: 'null'
required: false
type: choice
options:
- 'null'
- 'p'
- 'c'
kotlin-dev-version:
kotlin_dev_version:
description: 'Kotlin dev version, for example `1.9.20-dev-5788`'
default: ''
required: false
type: string
semver-stage:
semver_stage:
description: 'Version stage (`semver.stage` property), for example `snapshot`'
default: ''
default: 'snapshot'
required: false
type: string
semver-checkClean:
semver_checkClean:
description: 'Check the repo status at each step with `-P semver.checkClean=true`'
default: false
required: false
Expand All @@ -47,10 +47,10 @@ jobs:
uses: JavierSegoviaCordoba/reusable-workflows/.github/workflows/build-kotlin.yaml@main
with:
allow-github-actor-bots: false
gradle-args: '${{ github.event.inputs.gradle-args }} -P kotlinVersion=${{ github.event.inputs.kotlin-dev-version }} -P semver.stage=${{ github.event.inputs.semver-stage }} -P semver.checkClean=${{ github.event.inputs.semver-checkClean }}'
run_before_args: './gradlew assemble publishToMavenLocalTest ${{ github.event.inputs.gradle-args }} -P kotlinVersion=${{ github.event.inputs.kotlin-dev-version }} -P semver.stage=${{ github.event.inputs.semver-stage }} -P semver.checkClean=${{ github.event.inputs.semver-checkClean }}'
deploy-docs: ${{ github.event.inputs.deploy-docs }}
publish-all-docs: '${{ github.event.inputs.publish-all-docs }}'
publish-snapshot-tag-prefix: '${{ github.event.inputs.publish-snapshot-tag-prefix }}'
gradle-args: '${{ github.event.inputs.gradle_args }} -P kotlinVersion=${{ github.event.inputs.kotlin_dev_version }} -P semver.stage=${{ github.event.inputs.semver_stage }} -P semver.checkClean=${{ github.event.inputs.semver_checkClean }}'
run_before_args: './gradlew assemble publishToMavenLocalTest ${{ github.event.inputs.gradle_args }} -P kotlinVersion=${{ github.event.inputs.kotlin_dev_version }} -P semver.tagPrefix=${{ github.event.inputs.publish_snapshot_tag_prefix }} -P semver.stage=${{ github.event.inputs.semver_stage }} -P semver.checkClean=${{ github.event.inputs.semver_checkClean }}'
deploy-docs: ${{ github.event.inputs.deploy_docs }}
publish-all-docs: '${{ github.event.inputs.publish_all_docs }}'
publish-snapshot-tag-prefix: '${{ github.event.inputs.publish_snapshot_tag_prefix }}'
restore-kotlin-native-cache: false
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/fix-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: fix-checks

on:
workflow_dispatch:

jobs:
fix-checks:
uses: JavierSegoviaCordoba/reusable-workflows/.github/workflows/fix-checks.yaml@main
with:
restore-kotlin-native-cache: false
secrets: inherit
6 changes: 3 additions & 3 deletions .github/workflows/generate-version-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
if: github.ref == 'refs/heads/main'
inputs:
publish-project:
publish_project:
description: 'Project to publish'
required: true
default: 'plugin'
Expand Down Expand Up @@ -37,7 +37,7 @@ on:
jobs:
plugin:
uses: JavierSegoviaCordoba/reusable-workflows/.github/workflows/generate-version-tag.yaml@main
if: "${{ github.event.inputs.publish-project == 'plugin' }}"
if: "${{ github.event.inputs.publish_project == 'plugin' }}"
with:
project-path: ':'
tag-prefix: 'p'
Expand All @@ -48,7 +48,7 @@ jobs:

catalog:
uses: JavierSegoviaCordoba/reusable-workflows/.github/workflows/generate-version-tag.yaml@main
if: "${{ github.event.inputs.publish-project == 'catalog' }}"
if: "${{ github.event.inputs.publish_project == 'catalog' }}"
with:
semver-output-field: 'SEMVER_HUBDLE_VERSION_CATALOG'
project-path: 'hubdle-version-catalog:'
Expand Down

0 comments on commit 4d6f8ee

Please sign in to comment.