mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-07-13 04:47:12 +00:00
Update README with github actions usage.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user