Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 17, 2024
1 parent 2d9d65d commit d7847f8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@ Auto create tags from commit or package.json
- run: echo "successful - ${{ steps.create_tag.outputs.successful }}"
```
In the new action, you need to add the [`permissions`](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs) configuration:

```yml
jobs:
tags:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@main
if: env.previous_tag
with:
test: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
```

## Example Usage

First, we must listen for `push` events
Expand Down

0 comments on commit d7847f8

Please sign in to comment.