Update README with github actions usage.

This commit is contained in:
2021-05-09 18:00:21 +01:00
parent d01a83771d
commit 8004c61d35
+14 -7
View File
@@ -50,21 +50,28 @@ Flags:
```yaml ```yaml
jobs: jobs:
obain-semver: prepare:
name: Preparing build context
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Generate semver
outputs: outputs:
RELEASE_VERSION: ${{ steps.semver.outputs.semantic_version }} RELEASE_VERSION: ${{ steps.semver.outputs.semantic_version }}
steps: steps:
- name: Run - name: Checkout repo
uses: lukaszraczylo/semver-generator@1.0.14 uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Semver run
id: semver id: semver
uses: lukaszraczylo/semver-generator@1.0.29
with: with:
config_file: config.yaml config_file: config.yaml
# then... # either...
repository_url: https://github.com/lukaszraczylo/simple-gql-client
# or...
repository_local: true repository_local: true
# or...
repository_url: https://github.com/lukaszraczylo/simple-gql-client
- name: Semver check
run: |
echo "Semantic version detected: ${{ steps.semver.outputs.semantic_version }}"
``` ```
#### Calculations example #### Calculations example