Skip to content

Commit 7317b35

Browse files
authored
Update build.yml
1 parent 5b88b32 commit 7317b35

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,23 @@ jobs:
384384
prerelease: true
385385
tag: v${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}
386386

387+
# pre-publish-forum:
388+
# name: Prepare to Publish to Forum
389+
# if: inputs.workflowDebug != true && inputs.packagingDebug != true && inputs.skipForumPublish != true
390+
# needs: publish-github
391+
# runs-on: ubuntu-latest
392+
# outputs:
393+
# skip: ${{ steps.secret-check.outputs.skip }}
394+
# steps:
395+
# - id: secret-check
396+
# name: Check secrets
397+
# run: echo "skip=${{" >> "$GITHUB_OUTPUT"
398+
387399
publish-forum:
388400
name: Publish to Forum
389-
if: ${{ inputs.workflowDebug != true && inputs.packagingDebug != true && inputs.skipForumPublish != true && secrets.INTERSECTBOT_ACCESS_TOKEN != '' }}
401+
env:
402+
has_forum_token_secret: ${{ secrets.INTERSECTBOT_ACCESS_TOKEN != '' }}
403+
if: inputs.workflowDebug != true && inputs.packagingDebug != true && inputs.skipForumPublish != true && env.has_forum_token_secret
390404
needs: publish-github
391405
runs-on: ubuntu-latest
392406
steps:

0 commit comments

Comments
 (0)