Improve release tag regex (#122)

Matches changes made in https://github.com/apple/container/pull/187 by
@Thedarkmatter10

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
This commit is contained in:
Kathryn Baldauf
2025-06-13 14:45:16 -07:00
committed by GitHub
parent 763141633c
commit 4751d073bb
+6 -2
View File
@@ -3,7 +3,7 @@ name: Release containerization
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+\\.[0-9]+\\.[0-9]+"
jobs:
containerization:
@@ -16,7 +16,9 @@ jobs:
contents: read
packages: write
pages: write
deployDocs:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: containerization
permissions:
@@ -30,7 +32,9 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
release:
if: startsWith(github.ref, 'refs/tags/')
name: Publish release
timeout-minutes: 30
needs: containerization
@@ -42,7 +46,7 @@ jobs:
- name: Create release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ github.token }}
name: ${{ github.ref_name }}-prerelease
draft: true
make_latest: false