From b14fe1ce0331473ded518d7dfa28cc3762a45a9b Mon Sep 17 00:00:00 2001 From: Taras Mankovski Date: Mon, 12 Feb 2024 10:58:42 -0500 Subject: [PATCH] Updated matching for tag name --- .github/workflows/rebuild-releases.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rebuild-releases.yml b/.github/workflows/rebuild-releases.yml index 3d0f256f..69c1a58d 100644 --- a/.github/workflows/rebuild-releases.yml +++ b/.github/workflows/rebuild-releases.yml @@ -18,7 +18,7 @@ jobs: owner: 'thefrontside', repo: 'effection', }, - (response) => response.data.filter(({ name }) => /effection-v3.0.0/.test(name)) + (response) => response.data.filter(({ name }) => /^effection-v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.test(name)) ); core.setOutput('tags', JSON.stringify(tags.map(tag => tag.name))); @@ -33,12 +33,12 @@ jobs: matrix: tag: ${{fromJSON(needs.setup.outputs.tags)}} max-parallel: 4 - + permissions: # Give the default GITHUB_TOKEN write permission to commit and push the # added or changed files to the repository. contents: write - + steps: - uses: actions/checkout@v4 with: @@ -57,7 +57,7 @@ jobs: run: deno doc --html --name=effection@$VERSION mod.ts env: VERSION: ${{steps.vars.outputs.version}} - + - run: tar cfvz api-docs.tgz -C docs . - name: Create Release @@ -67,4 +67,4 @@ jobs: name: ${{steps.vars.outputs.version}} tag_name: "refs/tags/${{ matrix.tag }}" env: - GITHUB_TOKEN: ${{github.token}} \ No newline at end of file + GITHUB_TOKEN: ${{github.token}}