Skip to content

Commit 691b9aa

Browse files
committed
ensure desktop version has proper format
1 parent 8781ddf commit 691b9aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/update-desktop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
- name: Create new branch
1919
run: |
2020
git config --global --add safe.directory "$GITHUB_WORKSPACE"
21+
if [[ ! "$DESKTOP_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z]+)*$ ]]; then
22+
echo "Invalid version in payload: $DESKTOP_VERSION" >&2
23+
exit 1;
24+
fi
2125
git checkout -b "feature/desktop-${DESKTOP_VERSION}"
2226
- name: Update params.yaml
2327
run: |

0 commit comments

Comments
 (0)