Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <geky@geky.net>2023-09-03 20:46:18 +0300
committerGitHub <noreply@github.com>2023-09-03 20:46:18 +0300
commite40d8f5410de499d201d0bd42e5629a3f06d7759 (patch)
tree636683d15e7919f13d01e98c012a5b9caf4c425e
parenta942cdba664dd9f7b48dd7494807c29ef6fe313c (diff)
parent96fb8bec85c5ca1b7fe66371a6bdf0cb5a314d75 (diff)
Merge pull request #849 from littlefs-project/fix-ci-release-no-version
Fix release script breaking if there is no previous version
-rw-r--r--.github/workflows/release.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c0d446d..61b2972 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -81,7 +81,9 @@ jobs:
- name: find-prev-version
continue-on-error: true
run: |
- LFS_PREV_VERSION="$(git describe --tags --abbrev=0 --match 'v*')"
+ LFS_PREV_VERSION="$( \
+ git describe --tags --abbrev=0 --match 'v*' \
+ || true)"
echo "LFS_PREV_VERSION=$LFS_PREV_VERSION"
echo "LFS_PREV_VERSION=$LFS_PREV_VERSION" >> $GITHUB_ENV
@@ -240,6 +242,7 @@ jobs:
run: |
# create release and patch version tag (vN.N.N)
# only draft if not a patch release
+ touch release.txt
[ -e table.txt ] && cat table.txt >> release.txt
echo >> release.txt
[ -e changes.txt ] && cat changes.txt >> release.txt