From d7847f8ea11631e31d64f2808d9c3e434ea6f369 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 17 Jul 2024 23:26:26 +0800 Subject: [PATCH] doc: Update README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 32f8f86..b851ce2 100644 --- a/README.md +++ b/README.md @@ -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