Ensure that examples don't get deleted #6
Workflow file for this run
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: Don't delete examples | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
# Name the Job | |
name: Don't delete examples, when increasing format version | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get deleted files | |
id: changed-files | |
uses: tj-actions/changed-files@v44 | |
- name: List all deleted files | |
env: | |
ALL_DELETED_FILES: ${{ steps.changed-files.outputs.deleted_files }} | |
run: | | |
for file in ${ALL_DELETED_FILES}; do | |
echo "$file was deleted" | |
exit 1 | |
done |