Skip to content

Commit 98a520a

Browse files
francandokmohyeldine
authored andcommitted
fix: add run on main and tag it with latest
1 parent 718b6d8 commit 98a520a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/doxygen.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- '*'
7+
branches:
8+
- main
79
workflow_dispatch:
810

911
jobs:
@@ -32,8 +34,11 @@ jobs:
3234
3335
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
3436
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
35-
else
37+
elif [[ "$GITHUB_REF" == refs/heads/main ]]; then
3638
echo "TAG_NAME=latest" >> $GITHUB_OUTPUT
39+
else
40+
echo "Unsupported ref: $GITHUB_REF" >&2
41+
exit 1
3742
fi
3843
3944
- name: Build documentation

0 commit comments

Comments
 (0)