feat: modify error handling in case of attribute error for db calls #188
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This action cleans up the deployed documentation for pull requests | |
| # after they have been merged or closed. | |
| # The docs deployment is implemented in the main CICD file (`ci.yml`) | |
| # since it is in that workflow where the docs are built. | |
| # | |
| # For more information see: | |
| # https://actions.docs.ansys.com/version/stable/doc-actions/index.html#doc-deploy-pr-action | |
| name: PR-docs cleaner | |
| on: | |
| pull_request: | |
| types: [closed] | |
| env: | |
| DOCUMENTATION_CNAME: 'mapdl.docs.pyansys.com' | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| clean-docs-pr: | |
| name: "Deploy PR documentation" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Needed to remove documentation from gh-pages branch | |
| steps: | |
| - uses: ansys/actions/doc-deploy-pr@3931ac9351b13ae11b1203c2ef6b51e5c75502ea # v10.2.5 | |
| 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: 3 |