Compare commits

..

No commits in common. "28e0a5b0ee57531dce3cd3d538073d47d83c8a86" and "b1cc207781a5e03f2a3d591cb5922270d016b375" have entirely different histories.

2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,10 @@ 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,6 +1,7 @@
#!/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/')