neoloc/master_fetch (#8)
All checks were successful
Deploy / build (push) Successful in 4s

Reviewed-on: https://git.query.consul/unkin/packer-images/pulls/8
This commit is contained in:
Ben Vincent 2025-01-25 18:32:21 +11:00
parent f9dfb09ce5
commit f92b6f13ff

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
# Check for changes in images/ folder and the builds/ folder # Check for changes in images/ folder and the builds/ folder
git fetch origin master:master
if [ "$(git branch --show-current)" = "master" ]; then if [ "$(git branch --show-current)" = "master" ]; then
builds_changes=$(git diff --name-only HEAD^...master | grep -E '^builds/') builds_changes=$(git diff --name-only HEAD^...master | grep -E '^builds/')
images_changes=$(git diff --name-only HEAD^...master | grep -E '^images/') images_changes=$(git diff --name-only HEAD^...master | grep -E '^images/')