mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-17 01:17:43 +00:00
Complete switch to semver-gen
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user