Skip to content

Commit

Permalink
Updated matching for tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
taras committed Feb 12, 2024
1 parent 1d4eb2c commit b14fe1c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rebuild-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -67,4 +67,4 @@ jobs:
name: ${{steps.vars.outputs.version}}
tag_name: "refs/tags/${{ matrix.tag }}"
env:
GITHUB_TOKEN: ${{github.token}}
GITHUB_TOKEN: ${{github.token}}

0 comments on commit b14fe1c

Please sign in to comment.