Skip to content

[DOCS-7217/7054] Add OP landing and setup docs #5232

[DOCS-7217/7054] Add OP landing and setup docs

[DOCS-7217/7054] Add OP landing and setup docs #5232

Workflow file for this run

name: "Check for GIF files"
on:
pull_request:
paths:
- 'static/images/**/*'
jobs:
look-for-gifs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Find changed files
id: changed_files
uses: tj-actions/changed-files@v3
- name: Look for gifs
env:
branch: ${{ github.head_ref }}
id: comment_body
run: |
for file in ${{ steps.changed_files.outputs.all_changed_files }}; do
echo "Checking file ${file}..."
if [[ "$file" =~ ^static/images/(.*).gif$ ]]; then
echo "The file $file is a gif. Please replace with an mp4"
exit 1
fi
done