feat: add build workflows
Build / build (pull_request) Successful in 33s

- enable fetch-depth for code_checkout
- fetch master branch before checking for changed files
- ensure the clean target is called with the default
This commit is contained in:
2025-01-25 16:42:27 +11:00
parent d936a21108
commit 6f0d10c99e
4 changed files with 71 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
#!/bin/bash
# Check for changes in images/ folder and the builds/ folder
git fetch origin master:master
if [ "$(git branch --show-current)" = "master" ]; then
builds_changes=$(git diff --name-only HEAD^...master | grep -E '^builds/')
images_changes=$(git diff --name-only HEAD^...master | grep -E '^images/')