Recurring Build Check #24
This file contains 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: Recurring Build Check | |
on: | |
schedule: | |
# Runs at 10:00 UTC every Sunday | |
- cron: "0 10 * * 0" | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-check: | |
name: Build on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Install Docker | |
uses: docker/setup-docker-action@v4 | |
- name: Build and test DevContainer | |
uses: devcontainers/[email protected] | |
with: | |
push: never | |
imageName: vsctex | |
runCmd: | | |
grep -c "watchFileChanges" .devcontainer/devContLog.txt | grep -q "^1$" || exit 1 | |
- name: Upload resulting document | |
uses: actions/upload-artifact@v4 | |
with: | |
name: document_template | |
path: ./main.pdf | |
if-no-files-found: 'error' | |
retention-days: 14 | |
compression-level: 9 |