Skip to content

Commit 85523cc

Browse files
committed
fix: conditionally run the publish crates check
1 parent bf5724f commit 85523cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,17 @@ jobs:
147147
with:
148148
toolchain: ${{ env.RUST_VERSION }}
149149

150+
- name: Conditional check
151+
id: conditional_check # We add an ID to reference this step
152+
run: |
153+
if [[ -n "${{ env.FUEL_CORE_PATCH_BRANCH }}" || -n "${{ env.FUEL_CORE_PATCH_REVISION }}" ]]; then
154+
echo "should_publish=false" >> $GITHUB_OUTPUT
155+
else
156+
echo "should_publish=true" >> $GITHUB_OUTPUT
157+
fi
158+
150159
- name: Publish crate check
160+
if: steps.conditional_check.outputs.should_publish == 'true'
151161
uses: FuelLabs/publish-crates@v1
152162
with:
153163
dry-run: true

0 commit comments

Comments
 (0)