Skip to content

Commit 2aa8b8c

Browse files
committed
doc: Update README.md
1 parent d7847f8 commit 2aa8b8c

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,23 @@ Auto create tags from commit or package.json
4141
- run: echo "successful - ${{ steps.create_tag.outputs.successful }}"
4242
```
4343
44-
In the new action, you need to add the [`permissions`](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs) configuration:
45-
46-
```yml
47-
jobs:
48-
tags:
49-
runs-on: ubuntu-latest
50-
permissions:
51-
contents: write
52-
steps:
53-
- name: Create Tag
54-
id: create_tag
55-
uses: jaywcjlove/create-tag-action@main
56-
if: env.previous_tag
57-
with:
58-
test: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
59-
```
44+
> [!WARNING]
45+
> In the new action, you need to add the [`permissions`](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs) configuration:
46+
>
47+
> ```yml
48+
> jobs:
49+
> tags:
50+
> runs-on: ubuntu-latest
51+
> permissions:
52+
> contents: write
53+
> steps:
54+
> - name: Create Tag
55+
> id: create_tag
56+
> uses: jaywcjlove/create-tag-action@main
57+
> if: env.previous_tag
58+
> with:
59+
> test: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
60+
> ```
6061

6162
## Example Usage
6263

0 commit comments

Comments
 (0)