Skip to content

Commit 43526eb

Browse files
committed
chore(cicd): variable passing
1 parent 1c69697 commit 43526eb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/dev.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
#configured with .releaseserc
8989
# qqqq if we are not versioning the repo why arnt we dry running
9090
- name: Run dev semantic version (None Blocking)
91+
id: detect_semantic_version
9192
run: |
9293
9394
#set +e
@@ -115,18 +116,19 @@ jobs:
115116
if echo "$SEMVER_OUTPUT_RAW" | grep -q 'There are no relevant changes'; then
116117
DEV_SEMVER_VERSION="$FALLBACK_VERSION"
117118
echo "No relevant changes found - DEV_SEMVER_VERSION=$DEV_SEMVER_VERSION"
119+
echo "DEV_SEMVER_VERSION=$DEV_SEMVER_VERSION" >> $GITHUB_ENV
118120
elif echo "$SEMVER_OUTPUT_RAW" | grep -q 'Dry run: would publish version'; then
119121
# Extract the actual version
120122
DEV_SEMVER_VERSION=$(echo "$SEMVER_OUTPUT_RAW" | grep -oP 'Dry run: would publish version \K[^\s]+' || echo "extract-failed")
121123
echo "Version change detected - DEV_SEMVER_VERSION=$DEV_SEMVER_VERSION"
122124
echo "version change required true"
125+
echo "DEV_SEMVER_VERSION=$DEV_SEMVER_VERSION" >> $GITHUB_ENV
123126
else
124127
echo "Neither 'no changes' nor 'would publish' found, using fallback"
125128
DEV_SEMVER_VERSION="$FALLBACK_VERSION"
126129
echo "DEV_SEMVER_VERSION=$DEV_SEMVER_VERSION"
130+
echo "DEV_SEMVER_VERSION=$DEV_SEMVER_VERSION" >> $GITHUB_ENV
127131
fi
128-
129-
exit 0
130132

131133
# 0 not exclusively due to no version bump so check output
132134
# dry release seems not to error 1 qqqq!
@@ -191,7 +193,8 @@ jobs:
191193
- name: Rename Semver Version with branch date time dev
192194
id: set_dev_semantic_version
193195
run: |
194-
echo "Dev Semantic Release Output $DEV_SEMVER_VERSION"
196+
DEV_SEMVER_VERSION="${{ steps.detect_semantic_version.outputs.DEV_SEMVER_VERSION }}"
197+
echo "Dev Semantic Version Output = $DEV_SEMVER_VERSION"
195198
196199
# In development, we always package and update the website—even if there’s no version change.
197200
# This ensures the CI process runs consistently and the latest code is deployed.

0 commit comments

Comments
 (0)