Complete switch to semver-gen

This commit is contained in:
2021-05-11 22:19:34 +01:00
parent 91d55d1022
commit 3e2dd803f1
+7 -7
View File
@@ -13,18 +13,18 @@ jobs:
name: Preparing build context name: Preparing build context
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
RELEASE_VERSION: ${{ steps.get_env.outputs.RELEASE_VERSION }} RELEASE_VERSION: ${{ steps.semver.outputs.semantic_version }}
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: '0' fetch-depth: '0'
- name: Setting environment variables - name: Semver run
id: get_env id: semver
run: | uses: lukaszraczylo/semver-generator@v1
TMP_GITHUB_COMMITS_COUNT=$(git rev-list --count HEAD) with:
TMP_GITHUB_COUNT_NUMBER=$(echo ${GITHUB_RUN_NUMBER}) config_file: semver.yaml
echo "::set-output name=RELEASE_VERSION::1.$TMP_GITHUB_COMMITS_COUNT.$TMP_GITHUB_COUNT_NUMBER" repository_local: true
tests: tests:
name: Run unit tests name: Run unit tests