mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
chore: relax workflow failure
This commit is contained in:
parent
08713bc55a
commit
f2a579775d
1 changed files with 18 additions and 2 deletions
20
.github/workflows/semantic-release.yml
vendored
20
.github/workflows/semantic-release.yml
vendored
|
|
@ -38,5 +38,21 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
|
||||
run: |
|
||||
RELEASE_TAG=$(npx semantic-release | tee /dev/stderr | grep -oP '(?<=next release version is )[^ ]+')
|
||||
echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV
|
||||
set +e
|
||||
OUTPUT=$(npx semantic-release 2>&1)
|
||||
STATUS=$?
|
||||
echo "$OUTPUT" | tee /dev/stderr
|
||||
|
||||
if [[ $STATUS -eq 0 ]]; then
|
||||
# Extract release tag
|
||||
RELEASE_TAG=$(echo "$OUTPUT" | grep -oP '(?<=next release version is )[^ ]+')
|
||||
echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV
|
||||
exit 0
|
||||
elif [[ $STATUS -eq 1 && "$OUTPUT" == *"There are no relevant changes"* ]]; then
|
||||
echo "No release needed. semantic-release exited cleanly."
|
||||
exit 0
|
||||
else
|
||||
echo "❌ semantic-release failed with unexpected error (exit $STATUS)."
|
||||
exit $STATUS
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue