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
jobs:
obain-semver:
prepare:
name: Preparing build context
runs-on: ubuntu-latest
name: Generate semver
outputs:
RELEASE_VERSION: ${{ steps.semver.outputs.semantic_version }}
steps:
- name: Run
uses: lukaszraczylo/semver-generator@1.0.14
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Semver run
id: semver
uses: lukaszraczylo/semver-generator@1.0.29
with:
config_file: config.yaml
# then...
repository_url: https://github.com/lukaszraczylo/simple-gql-client
# or...
# either...
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