Skip to content

Commit 0338c07

Browse files
Only allow docs publish on tags or release branches (#32)
Matches same changes on container apple/container#30 Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
1 parent b222b94 commit 0338c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docs-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
checkBranch:
99
runs-on: ubuntu-latest
10-
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release')
10+
if: startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release')
1111
steps:
1212
- name: Branch validation
1313
run: echo "Branch ${{ github.ref_name }} is allowed"

0 commit comments

Comments
 (0)