Skip to content

chore(deps): update docker/setup-qemu-action action to v3.7.0 #427

chore(deps): update docker/setup-qemu-action action to v3.7.0

chore(deps): update docker/setup-qemu-action action to v3.7.0 #427

Workflow file for this run

name: Sanity Checks
on:
pull_request:
permissions:
contents: read
jobs:
verify:
name: Check whether .devcontainer.json files are updated
runs-on: ubuntu-latest
steps:
- name: Check out the source code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Check changed files
run: |
base="${{ github.event.pull_request.base.sha }}"
head="${{ github.event.pull_request.head.sha }}"
for image in images/src/*; do
changes="$(git diff --merge-base --name-only "${base}" "${head}" -- "${image}" | grep -Fv "${image}/README.md" || true)"
if [ -n "${changes}" ] && ! echo "${changes}" | grep -q "${image}/.devcontainer.json"; then
echo "::error::Changes were made to ${image}, but the corresponding .devcontainer.json was not updated"
exit 1
fi
done