Skip to content

Commit 5f269c3

Browse files
CopilotBorda
andauthored
ci(docs): polish RC release gating readability
Agent-Logs-Url: https://github.com/roboflow/supervision/sessions/ae425224-4535-4165-9a2a-aceff386e555 Co-authored-by: Borda <6035284+Borda@users.noreply.github.com>
1 parent 7726eaf commit 5f269c3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/publish-docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
release_tag="${GITHUB_REF_NAME#v}"
7474
release_tag="${release_tag%.post*}"
7575
release_tag_lower="${release_tag,,}"
76-
# Match RC suffixes like 1.0rc1, 1.0-rc1, or 1.0.rc1.
76+
# Match RC suffixes with separators (1.0-rc1, 1.0.rc1) or compact form (1.0rc1).
7777
if [[ "$release_tag_lower" =~ (^|[._-])rc[0-9]+$ ]] || [[ "$release_tag_lower" =~ [0-9]rc[0-9]+$ ]]; then
7878
is_rc=true
7979
fi
@@ -100,8 +100,7 @@ jobs:
100100
(github.event_name == 'push' && github.ref == 'refs/heads/develop') ||
101101
github.event_name == 'workflow_dispatch' ||
102102
(github.event_name == 'push' && github.ref == 'refs/heads/release/latest') ||
103-
(github.event_name == 'release' && github.event.action == 'published' &&
104-
steps.release_metadata.outputs.is_rc != 'true')
103+
(github.event_name == 'release' && github.event.action == 'published' && steps.release_metadata.outputs.is_rc != 'true')
105104
run: |
106105
cp docs/robots.txt /tmp/robots.txt
107106
cp docs/llms.txt /tmp/llms.txt

0 commit comments

Comments
 (0)