Update github-actions-builddockerfile.yml
This commit is contained in:
@@ -18,27 +18,16 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: paulhatch/semantic-version@v5.3.0
|
- name: Set Calver Version
|
||||||
id: version
|
uses: Nelyx/action-calver@v1.0.0
|
||||||
|
id: setcalver
|
||||||
with:
|
with:
|
||||||
# The prefix to use to identify tags
|
default_branch: 'refs/heads/main'
|
||||||
tag_prefix: "v"
|
format: 'YY.M.D'
|
||||||
# A string which, if present in a git commit, indicates that a change represents a
|
version_prefix: ''
|
||||||
# major (breaking) change, supports regular expressions wrapped with '/'
|
|
||||||
major_pattern: "(MAJOR)"
|
|
||||||
# A string which indicates the flags used by the `major_pattern` regular expression. Supported flags: idgs
|
|
||||||
major_regexp_flags: ""
|
|
||||||
# Same as above except indicating a minor change, supports regular expressions wrapped with '/'
|
|
||||||
minor_pattern: "(MINOR)"
|
|
||||||
# A string which indicates the flags used by the `minor_pattern` regular expression. Supported flags: idgs
|
|
||||||
minor_regexp_flags: ""
|
|
||||||
# A string to determine the format of the version output
|
|
||||||
version_format: "${increment}"
|
|
||||||
# If this is set to true, *every* commit will be treated as a new version.
|
|
||||||
bump_each_commit: true
|
|
||||||
- name: Update version file
|
- name: Update version file
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/subgen_version =.*/subgen_version = ${{ steps.version.outputs.version }}/' subgen/subgen.py
|
sed -i 's/subgen_version =.*/subgen_version = ${{ steps.setcalver.outputs.package_version }}/' subgen/subgen.py
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user