2
0
mirror of https://github.com/tycrek/degoogle synced 2024-11-10 01:13:40 +00:00
degoogle/.github/workflows/readme-protection.yml
Josh Moore 34218f041b
Squash commits hopefully (#518)
Co-authored-by: amo13 <amaury@mailbox.org>
Co-authored-by: Matthew Wise <matthew.rs.wise@gmail.com>
Co-authored-by: Mark Niehe <mark.niehe@segment.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Degoogle Bot <dg-bot-push@tycrek.com>
2023-10-19 17:03:13 -06:00

26 lines
630 B
YAML

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