Skip to content

Commit

Permalink
Fix build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nares committed Apr 26, 2023
1 parent 7a882b7 commit 57943ca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
run: |
echo "VERSION=`echo $TARGET_BRANCH | perl -pe 's|^.+/([^/]+?)(?:\.x)?$|\1|'`" >> $GITHUB_ENV;
#- name: Ensure the version is coherent
# run: |
# VERSION_FORMAT='^([0-9]+\.)*[0-9]+$'
# if [[ ! $VERSION =~ $VERSION_FORMAT ]]; then
# echo "::error::Version '$VERSION' is not a valid version!"
# exit 1
# else
# echo "Version: '$VERSION'"
# fi
- name: Ensure the version is coherent
run: |
VERSION_FORMAT='^([0-9]+\.)*[0-9]+$'
if [[ ! $VERSION =~ $VERSION_FORMAT ]]; then
echo "::error::Version '$VERSION' is not a valid version!"
exit 1
else
echo "Version: '$VERSION'"
fi
- name: Move content into the appropriate directory
run: |
Expand All @@ -56,5 +56,5 @@ jobs:
- name: Build
env:
DEVDOCS_GITHUB_READ_TOKEN: ${{ secrets.TEST_SECRET }}
DEVDOCS_GITHUB_READ_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd src/ && hugo

0 comments on commit 57943ca

Please sign in to comment.