Skip to content

bld_test_rel_tag

bld_test_rel_tag #3

name: bld_test_rel_tag
on:
workflow_call:
inputs:
version_tag:
description: 'version tag to use'
required: false
default: "latest"
type: string
bump:
description: 'whether to bump the version number by a major minor patch amount or try gitlog'
required: false
default: "patch"
type: string
ref:
description: 'git reference to use with the checkout use default_branch to have that calculated'
required: false
default: "default"
type: string
rel_tag:
description: Whether to tag the code
type: boolean
required: false
default: true
workflow_dispatch:
inputs:
version_tag:
description: 'version tag to use'
required: false
default: "latest"
type: string
bump:
description: |
How to optionally bump the semver version ( Major.Minor.Patch ) : git log will be searched for
'#major #minor #patch' or feat/ or fix/ branch names to optionally override the bump. Set to none to keep a specific version
required: false
options:
- patch
- minor
- major
- none
type: choice
ref:
description: 'git reference to use with the checkout use default_branch to have that calculated'
required: false
default: "default_branch"
type: string
rel_tag:
description: Whether to tag the code
type: boolean
required: false
default: true
# cancel running job if another commit comes in
concurrency:
group: main-${{ github.ref }}-1
cancel-in-progress: true
jobs:
format_i18n:
uses: ./.github/workflows/format_i18n.yml
secrets: inherit # pass all secrets for pushing
format_prettier:
uses: ./.github/workflows/format_prettier.yml
secrets: inherit # pass all secrets for pushing
##############################################################################
lint:
uses: ./.github/workflows/lint.yml
needs:
- format_i18n
- format_prettier
test_yarn:
uses: ./.github/workflows/test_yarn.yml
needs:
- format_i18n
- format_prettier
##############################################################################
# uses maven to build via yarn into a war file
bld_mvn:
uses: ./.github/workflows/bld_mvn.yml
secrets: inherit # pass all secrets for uploading assets
needs:
- lint
- format_i18n
- format_prettier
permissions:
checks: write
contents: read
issues: read
pull-requests: write
with:
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_docker:
uses: ./.github/workflows/bld_docker.yml
secrets: inherit # pass all secrets for uploading assets
needs:
- lint
- format_i18n
- format_prettier
permissions:
checks: write
contents: read
issues: read
pull-requests: write
with:
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
##############################################################################
rel_tag:
uses: ./.github/workflows/rel_tag.yml
if: ${{ inputs.rel_tag }}
needs: bld_mvn
with:
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
secrets: inherit # pass all secrets
permissions:
checks: write
contents: write
issues: read
pull-requests: write