Skip to content

Commit 02d89bf

Browse files
authored
Update build.yml
1 parent 7317b35 commit 02d89bf

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -384,24 +384,18 @@ 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"
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: ${{ secrets.INTERSECTBOT_ACCESS_TOKEN != '' }}
398394

399395
publish-forum:
400396
name: Publish to Forum
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
404-
needs: publish-github
397+
if: inputs.workflowDebug != true && inputs.packagingDebug != true && inputs.skipForumPublish != true && needs.pre-publish-forum.outputs.skip != true
398+
needs: pre-publish-forum
405399
runs-on: ubuntu-latest
406400
steps:
407401
- name: Publish to Forum

0 commit comments

Comments
 (0)