Skip to content

Commit a0b56c0

Browse files
committed
ci: allow manual dry-run without tag by using placeholder v0.0.0-dryrun
1 parent dfe0193 commit a0b56c0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/sync-provider.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ jobs:
5757
TAG="${{ github.event.release.tag_name }}"
5858
fi
5959
if [[ -z "$TAG" ]]; then
60-
echo "Error: Could not determine tag name from event." >&2
61-
exit 1
60+
if [[ "$DRY_RUN" == "true" ]]; then
61+
TAG="v0.0.0-dryrun"
62+
echo "DRY-RUN: Using placeholder tag $TAG" >&2
63+
else
64+
echo "Error: Could not determine tag name from event." >&2
65+
exit 1
66+
fi
6267
fi
6368
VERSION_FROM_TAG="${TAG#v}"
6469
VERSION_RB=$(ruby -e 'print File.read("lib/log_struct/version.rb")[/VERSION\s*=\s*"([^"]+)"/,1]')

0 commit comments

Comments
 (0)