forked from Benbentwo/increment-semver
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.15 KB
/
demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
on: [push]
jobs:
test-increment-semver-job:
runs-on: ubuntu-latest
name: A job to test incrementing the version of a repository
steps:
# Note Checkout is required for ${GITHUB_WORKSPACE} to be not empty
- name: Checkout
uses: actions/checkout@v1
# Examples
- name: Increment Step Patch
id: increment-semver-patch
uses: Benbentwo/increment-semver@master
with:
version-level: '-p'
- name: Increment Step Minor
id: increment-semver-minor
uses: Benbentwo/increment-semver@master
with:
version-level: '-m'
- name: Increment Step Major
id: increment-semver-major
uses: Benbentwo/increment-semver@master
with:
version-level: '-M'
# Use the output from the `Increment Step X` step
- name: Get the output version
run: |
echo "The new patch version was ${{ steps.increment-semver-patch.outputs.version }}"
echo "The new minor version was ${{ steps.increment-semver-minor.outputs.version }}"
echo "The new Major version was ${{ steps.increment-semver-major.outputs.version }}"