Bump docker/build-push-action from 5 to 6 #169
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
# Note: Used by this GitHub repository. | |
name: "Check GitHub YAML files" | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
env: | |
PYTHON_PACKAGES: | | |
jsonschema==4.9.1 | |
ruamel.yaml==0.17.21 | |
requests==2.27.1 | |
PYTHON_VERSION: 3.9 | |
SLATE_GITHUB_ACTIONS_BRANCHORTAG: master | |
SLATE_GITHUB_ACTIONS_RAWCONTENT_URL: https://raw.githubusercontent.com/slateci/github-actions | |
jobs: | |
checks: | |
name: Checks | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
path: ./checkout | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Python packages | |
uses: BSFishy/pip-action@v1 | |
with: | |
packages: ${{ env.PYTHON_PACKAGES }} | |
- name: Download workflow dependencies | |
run: |- | |
# Python files | |
for FILENAME in github-schema-validate.py | |
do | |
curl -fsSL ${{ env.SLATE_GITHUB_ACTIONS_RAWCONTENT_URL }}/${{ env.SLATE_GITHUB_ACTIONS_BRANCHORTAG }}/scripts/$FILENAME -o $FILENAME | |
done | |
- name: Validate Schemas | |
working-directory: . | |
env: | |
GITHUB_YAML_PATH: './checkout/.github' | |
run: |- | |
python github-schema-validate.py |