mirror of
https://github.com/mtkennerly/dunamai-action.git
synced 2025-06-19 13:48:05 +00:00
Initial commit
This commit is contained in:
commit
67c82a2422
10 changed files with 210 additions and 0 deletions
38
.github/workflows/main.yaml
vendored
Normal file
38
.github/workflows/main.yaml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
name: Main
|
||||
|
||||
jobs:
|
||||
example:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: mtkennerly/dunamai-action@v1
|
||||
with:
|
||||
env-var: MY_VERSION
|
||||
args: --style semver
|
||||
- run: echo $MY_VERSION
|
||||
|
||||
complete:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: mtkennerly/dunamai-action@v1
|
||||
with:
|
||||
install: '1.2.0'
|
||||
env-var: MY_VERSION
|
||||
command: dunamai from git
|
||||
args: --style semver
|
||||
- run: echo $MY_VERSION
|
Loading…
Add table
Add a link
Reference in a new issue