We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f44ee4 commit 4534c87Copy full SHA for 4534c87
.github/workflows/main.yml
@@ -234,7 +234,8 @@ jobs:
234
- name: release tag version from cloudsync.h
235
id: tag
236
run: |
237
- VERSION=$(make version)
+ FILE="src/cloudsync.h"
238
+ VERSION=$(grep -oP '#define CLOUDSYNC_VERSION\s+"\K[^"]+' "$FILE")
239
if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
240
LATEST=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.name')
241
if [[ "$VERSION" != "$LATEST" || "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
0 commit comments