Skip to content

chore(deps): renovate: actions/github-script to v9 #229

chore(deps): renovate: actions/github-script to v9

chore(deps): renovate: actions/github-script to v9 #229

Workflow file for this run

---
name: Deploy
on:
push:
branches:
- main
- renovate/**
pull_request:
concurrency:
cancel-in-progress: true
group: >-
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
chktex:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/latex/chktex@0a54f965cd2ff530f3313bbbaf384cf54bbb7374 # v0
vale:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-slim
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/vale@0a54f965cd2ff530f3313bbbaf384cf54bbb7374 # v0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vale-flags: --glob='!{config/,figures/*/example_,thesis}*'
compile-latex:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/latex/compile@0a54f965cd2ff530f3313bbbaf384cf54bbb7374 # v0
- name: Upload artefacts
# yamllint disable-line rule:line-length
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: artefacts
path: |-
*.bib
*.bcf
*.pdf
if-no-files-found: error
check-citations-referenced:
permissions:
contents: read
runs-on: ubuntu-latest
needs: compile-latex
steps:
- name: Download artefacts
# yamllint disable-line rule:line-length
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6
with:
name: artefacts
- name: Fix regex for checkcites
# yamllint disable-line rule:line-length
uses: xu-cheng/texlive-action@475ab07999e9709e524c3708488c8c170d3a6611 # v3
id: references
with:
scheme: full
run: >-
sed -i 's#\sglob="false"##' thesis.bcf; echo uncited=$(checkcites -b
biber thesis -u | grep -c "=>") >> $GITHUB_OUTPUT
- name: Check all references cited
if: ${{ steps.references.outputs.uncited > 0 }}
# yamllint disable-line rule:line-length
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
with:
script: core.setFailed('Not all references cited')
upload-to-dropbox:
if: github.ref == 'refs/heads/main'
needs: compile-latex
permissions:
contents: read
runs-on: ubuntu-slim
steps:
- name: Download artefacts
# yamllint disable-line rule:line-length
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6
with:
name: artefacts
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/dropbox@0a54f965cd2ff530f3313bbbaf384cf54bbb7374 # v0
with:
# yamllint disable rule:line-length
configfile-version: ${{ secrets.CONFIGFILE_VERSION }} # zizmor: ignore[secrets-outside-env]
files-to-upload: $(find . -maxdepth 1 -name '*.pdf' -print)
oauth-app-key: ${{ secrets.OAUTH_APP_KEY }} # zizmor: ignore[secrets-outside-env]
oauth-app-secret: ${{ secrets.OAUTH_APP_SECRET }} # zizmor: ignore[secrets-outside-env]
oauth-refresh-token: ${{ secrets.OAUTH_REFRESH_TOKEN }} # zizmor: ignore[secrets-outside-env]
# yamllint enable rule:line-length