Add new pack - Hello Universe - 1.0.0 #110
Workflow file for this run
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: Packs Validation | |
# # Controls when the action will run. Workflow runs when manually triggered using the UI | |
# # or API. | |
on: | |
pull_request: | |
branches: [ main ] | |
# # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# # This workflow contains a single job called "validator" | |
validator: | |
# # The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# # Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y nodejs npm | |
sudo npm install -g validate-json | |
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq | |
sudo chmod +x /usr/bin/yq | |
# # Checkout code | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v41 | |
# # Run Validations | |
- name: Check Packs | |
shell: bash | |
run: | | |
echo "${{ steps.changed-files.outputs.all_changed_files }}" >> /tmp/modified_files | |
chmod +x ${GITHUB_WORKSPACE}/validator/validate-packs.sh | |
cd ${GITHUB_WORKSPACE}/validator | |
./validate-packs.sh |