fix: only run packer validation if any packer-related files were changed.
These files rarely change - and usually by me - so it shouldn't impact PRs from other collaborators very often.
This commit is contained in:
1 parent
1cfaa6c942
commit
1535549a8f
1 file changed
+6
@@ -46,9 +46,15 @@ jobs:
|
|||||||
version: latest
|
version: latest
|
||||||
- name: Run packer init
|
- name: Run packer init
|
||||||
run: "make image/init/digitalocean"
|
run: "make image/init/digitalocean"
|
||||||
|
- name: Get changed files in the docs folder
|
||||||
|
id: changed-files-specific
|
||||||
|
uses: tj-actions/changed-files@v35.9.2
|
||||||
|
with:
|
||||||
|
files: contrib/images/digitalocean/**
|
||||||
- name: Run `packer validate`
|
- name: Run `packer validate`
|
||||||
env:
|
env:
|
||||||
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
|
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
|
||||||
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||||
run: "make image/validate/digitalocean"
|
run: "make image/validate/digitalocean"
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
|
|||||||
Reference in new issue
Block a user