From cac87fefe9750bba6d8b165b0c7e56a2b8aafc1e Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Mon, 4 Mar 2024 07:43:50 -0700 Subject: [PATCH] Update github-actions-builddockerfile.yml --- .../github-actions-builddockerfile.yml | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/github-actions-builddockerfile.yml b/.github/workflows/github-actions-builddockerfile.yml index ef628fd..35463d1 100644 --- a/.github/workflows/github-actions-builddockerfile.yml +++ b/.github/workflows/github-actions-builddockerfile.yml @@ -16,14 +16,28 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - name: Increment and tag with CalVer - uses: mani-sh-reddy/calver-increment@v1.2.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - YEAR_FORMAT: "YY" + with: + fetch-depth: 0 + - uses: paulhatch/semantic-version@v5.3.0 + with: + # The prefix to use to identify tags + tag_prefix: "v" + # A string which, if present in a git commit, indicates that a change represents a + # 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 run: | - sed -i 's/subgen_version =.*/subgen_version = ${{ steps.version.outputs.new_tag }}/' subgen/subgen.py + sed -i 's/subgen_version =.*/subgen_version = ${{ steps.semantic-version.outputs.version }}/' subgen/subgen.py - name: Commit and push changes run: |