Move the view when performing actions on the list #224
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: Run CI/CD pipeline | |
| on: | |
| push: | |
| branches: "*" | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| is-main-branch: |- | |
| ${{ | |
| github.event_name != 'pull_request' && contains( | |
| fromJson('["main", "1.19"]'), | |
| (github.head_ref || github.ref_name) | |
| ) | |
| }} | |
| steps: | |
| - name: Print message so the workflow isn't invalid | |
| run: 'echo "HexDebug <3 HexBug"' | |
| build-docs: | |
| needs: setup | |
| uses: hexdoc-dev/actions/.github/workflows/hexdoc.yml@v1 | |
| permissions: | |
| contents: write | |
| pages: read | |
| secrets: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| python-version: 3.11 | |
| deploy-pages: ${{ needs.setup.outputs.is-main-branch == 'true' }} | |
| release: false |