Remove the default branch check because it doesn't seem to work #186
Workflow file for this run
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: Build Check | |
on: | |
push | |
jobs: | |
build-css: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.deno | |
~/.cache/deno | |
key: ${{ hashFiles('deno.lock') }} | |
- name: Install Deps | |
run: deno install | |
- name: Build CSS | |
run: deno task build | |
- name: Check if CSS is up to date | |
run: | | |
if ! git diff --quiet index.css; then | |
echo "The index.css has changes after running the build command. Please commit those changes." | |
exit 1 | |
fi |