This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
chore: update alpha copy on supabase #33
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: README Edit Protection | |
on: | |
pull_request_target: | |
jobs: | |
check: | |
name: 'File check' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v39 | |
- name: Check if README included | |
run: | | |
for file in ${{ steps.changed-files.outputs. modified_files }}; do | |
if [[ $file == 'README.md' ]]; then | |
echo "[!] README.md was edited, blocking!" | |
exit 1 | |
fi | |
done |