Merge pull request #5850 from dokku/josegonzalez-patch-1
Only run packer validation if any packer-related files were changed
This commit is contained in:
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