Skip to content

Commit 7e35068

Browse files
authored
Merge pull request #1358 from InseeFr/check_tag_is_main_release
fix: implement branch check for versioning
2 parents 92d3cd6 + f58e2bd commit 7e35068

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11+
- name: Check if on main branch
12+
run: |
13+
if [[ "${{ github.ref_name }}" =~ ^v[0-9]+[.][0-9]+[.][0-9]+$ ]]; then
14+
echo "Le nom de la référence correspond au motif."
15+
else
16+
echo "Le nom de la référence ne correspond PAS au motif."
17+
exit 1
18+
fi
1119
- name: Use Generic CI For Building the Application
1220
uses: ./.github/actions/generic-ci-app
1321
- name: Upload deploy artifact

0 commit comments

Comments
 (0)