Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Validate release workflow versions

Manav Rathi20393bc82373
diff --git a/.github/workflows/app-release.yml b/.github/workflows/app-release.yml
index e84872d794..b53b608db0 100644
--- a/.github/workflows/app-release.yml
+++ b/.github/workflows/app-release.yml
@@ -57,6 +57,14 @@ jobs:
with:
ref: release/${{ inputs.app }}-v${{ inputs.version }}
+ - name: Validate version input
+ shell: bash
+ run: |
+ if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ echo "::error::version must be x.y.z"
+ exit 1
+ fi
+
- name: Mint App token
id: app_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0