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
| name: Test building docs with ctsm_pylib | |
| on: | |
| push: | |
| # Run when a change to these files is pushed to any branch. Without the "branches:" line, for some reason this will be run whenever a tag is pushed, even if the listed files aren't changed. | |
| branches: ['*'] | |
| paths: | |
| - 'python/conda_env_ctsm_py.txt' | |
| - '.github/workflows/docs-common.yml' | |
| pull_request: | |
| # Run on pull requests that change the listed files | |
| paths: | |
| - 'python/conda_env_ctsm_py.txt' | |
| - '.github/workflows/docs-common.yml' | |
| schedule: | |
| # 8 am every Monday UTC | |
| - cron: '0 8 * * 1' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-build-docs-ctsm_pylib: | |
| if: ${{ always() }} | |
| name: With ctsm_pylib | |
| uses: ./.github/workflows/docs-common.yml | |
| with: | |
| use_conda: true | |
| conda_env_file: python/conda_env_ctsm_py.yml | |
| conda_env_name: ctsm_pylib | |
| # File an issue if the docs build failed during a scheduled run | |
| file-issue-on-failure: | |
| if: | | |
| failure() && | |
| github.event_name == 'schedule' | |
| needs: test-build-docs-ctsm_pylib | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Create issue | |
| uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| filename: .github/workflows/docs-ctsm_pylib.issue_template.md | |
| update_existing: true | |
| search_existing: open | |