-
Notifications
You must be signed in to change notification settings - Fork 14
maint/deploy pr docs if labelled #1259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
dee8d99
8036772
ea86691
fe2eb54
b649655
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,21 +134,20 @@ jobs: | |
| PYPRIMEMESH_IMAGE_TAG: ${{ env.DOCKER_IMAGE_TAG }} | ||
| ANSYSLMD_LICENSE_FILE: '1055@${{ secrets.LICENSE_SERVER }}' | ||
|
|
||
| # Commented out because too many PRs open cause the gh-pages branch to be too large | ||
| # doc-deploy-pr: | ||
| # name: "Deploy PR documentation" | ||
| # runs-on: ubuntu-latest | ||
| # needs: docs | ||
| # # Run when the PR is closed i.e. when docs job is skipped | ||
| # if: always() && (needs.docs.result == 'success' || needs.docs.result == 'skipped') | ||
| # steps: | ||
| # - uses: ansys/actions/doc-deploy-pr@v10 | ||
| # with: | ||
| # cname: ${{ env.DOCUMENTATION_CNAME }} | ||
| # token: ${{ secrets.GITHUB_TOKEN }} | ||
| # bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} | ||
| # bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} | ||
| # maximum-pr-doc-deployments: 20 | ||
| doc-deploy-pr: | ||
| name: "Deploy PR documentation" | ||
| runs-on: ubuntu-latest | ||
| needs: docs | ||
| # Run when the PR is closed i.e. when docs job is skipped | ||
| if: always() && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'docs:deploy') && (needs.docs.result == 'success' || needs.docs.result == 'skipped') | ||
| steps: | ||
| - uses: ansys/actions/doc-deploy-pr@v10 | ||
| with: | ||
| cname: ${{ env.DOCUMENTATION_CNAME }} | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} | ||
| bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} | ||
| maximum-pr-doc-deployments: 20 | ||
|
Comment on lines
+137
to
+150
|
||
|
|
||
| testing: | ||
| name: Run Unit Tests | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1 @@ | ||||||
| Maint/deploy pr docs if labelled | ||||||
|
||||||
| Maint/deploy pr docs if labelled | |
| Chore: deploy PR docs if labelled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This job is gated by the presence of the
docs:deploylabel, but this workflow’spull_requesttrigger types don’t includelabeled. As a result, applying the label won’t start a new run, and docs won’t deploy until some other PR event occurs (e.g., a new push or closing the PR). Consider addinglabeledto the workflow trigger types so the label takes effect immediately.