Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Nov 22, 2019
1 parent 77386bb commit b36a13d
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,31 @@ See [setup](setup/action.yml) and [usage](execute/action.yml)
There are two step dependencies that are required in your workflow before running this action. You must checkout your Git repository and then fetch the master branch and tags.

```yaml
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Fetch tags and master for GitVersion
run: |
git fetch --tags
git branch --create-reflog master origin/master
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Fetch tags and master for GitVersion
run: |
git fetch --tags
git branch --create-reflog master origin/master
```
Basic:
```yaml
steps:
- uses: actions/checkout@v1
- name: Fetch tags and master for GitVersion
run: |
git fetch --tags
git branch --create-reflog master origin/master
- name: Install GitVersion
uses: gittools/use-gitversion/setup@v0.2
with:
versionSpec: '5.1.x'
- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/use-gitversion/execute@v0.2
- run: |
echo "FullSemVer: ${{ steps.gitversion.outputs.FullSemVer }}"
steps:
- uses: actions/checkout@v1
- name: Fetch tags and master for GitVersion
run: |
git fetch --tags
git branch --create-reflog master origin/master
- name: Install GitVersion
uses: gittools/use-gitversion/setup@v0.2
with:
versionSpec: '5.1.x'
- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/use-gitversion/execute@v0.2
- run: |
echo "FullSemVer: ${{ steps.gitversion.outputs.FullSemVer }}"
```

0 comments on commit b36a13d

Please sign in to comment.