Compare commits

..

2 Commits

Author SHA1 Message Date
28e0a5b0ee fix: remove git fetch from build.sh
All checks were successful
Build / build (pull_request) Successful in 5s
2025-01-25 18:31:40 +11:00
64c757d03e fix: dont fetch master on deploy
All checks were successful
Build / build (pull_request) Successful in 4s
- deploy runs on master branch, dont attempt to fetch it
2025-01-25 18:29:50 +11:00
2 changed files with 0 additions and 5 deletions

View File

@ -18,10 +18,6 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Fetch master branch
run: |
git fetch origin master:master
- name: Run Packer Builds - name: Run Packer Builds
env: env:
VAULT_ROLEID: ${{ secrets.PACKER_BUILDER_VAULT_ROLEID }} VAULT_ROLEID: ${{ secrets.PACKER_BUILDER_VAULT_ROLEID }}

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/')