Merge pull request #99 from EWBr0wn/update-anaconda-bootstring #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Packer JSON files | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Packer | |
run: | | |
# Download and install Packer. | |
export VER="1.7.2" | |
wget https://releases.hashicorp.com/packer/${VER}/packer_${VER}_linux_amd64.zip | |
unzip packer_${VER}_linux_amd64.zip | |
sudo mv packer /usr/local/bin | |
# Ensure Packer is installed correctly. | |
packer --version | |
- name: Validate json | |
run: | | |
find . -name "*.json" | while read filename | |
do | |
echo "$filename"; packer validate -syntax-only "$filename" | |
done |