-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (27 loc) · 1.04 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: 'tag-version'
description: 'Provides automated versioning of your commits using git tags each time your CI/CD workflow runs.'
branding:
icon: 'tag'
color: 'purple'
inputs:
production-branch:
description: 'The branch to use for stable releases in production. Default is master'
required: false
default: master
dev-branch:
description: 'The branch to use for dev deployments. Default is develop'
required: false
default: dev
outputs:
revision:
description: 'The new version that was created and tagged in the format of <major>.<minor>.<build>[.<pre-release-tag>]'
value: ${{ steps.tag-version.outputs.revision }}
is-prerelease:
description: 'Is true if this is a release into a non-production environment and indicates the build may be unstable. Returns false otherwise.'
value: ${{ steps.tag-version.outputs.is-prerelease }}
runs:
using: composite
steps:
- id: tag-version
run: bash $GITHUB_ACTION_PATH/src/tag-version.sh ${{ inputs.production-branch }} ${{ inputs.dev-branch }}
shell: bash