Skip to content

Commit 20f9702

Browse files
authored
format code with yaml
1 parent ff0e06b commit 20f9702

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

README.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,34 @@ There are two blocks you will need:
3838

3939
First you will need to generate the changelog itself. To get the changelog between the SHA of the commit that triggered the action and the tag of the latest release:
4040

41-
- name: Generate changelog
42-
id: changelog
43-
uses: metcalfc/[email protected]
44-
with:
45-
myToken: ${{ secrets.GITHUB_TOKEN }}
41+
```yaml
42+
- name: Generate changelog
43+
id: changelog
44+
uses: metcalfc/[email protected]
45+
with:
46+
myToken: ${{ secrets.GITHUB_TOKEN }}
47+
```
4648
4749
Or, if you have two specific references you want:
4850
49-
- name: Generate changelog
50-
id: changelog
51-
uses: metcalfc/[email protected]
52-
with:
53-
myToken: ${{ secrets.GITHUB_TOKEN }}
54-
head-ref: 'v0.0.2'
55-
base-ref: 'v0.0.1'
51+
```yaml
52+
- name: Generate changelog
53+
id: changelog
54+
uses: metcalfc/[email protected]
55+
with:
56+
myToken: ${{ secrets.GITHUB_TOKEN }}
57+
head-ref: 'v0.0.2'
58+
base-ref: 'v0.0.1'
59+
```
5660
5761
### Second block
5862
5963
Then you can use the resulting changelog:
6064
61-
- name: Get the changelog
62-
run: echo "${{ steps.changelog.outputs.changelog }}"
65+
```yaml
66+
- name: Get the changelog
67+
run: echo "${{ steps.changelog.outputs.changelog }}"
68+
```
6369
6470
## Example use case
6571

0 commit comments

Comments
 (0)