Feature/add union data #1
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: 'check docs' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
changed-files: | |
runs-on: ubuntu-latest | |
name: test changed-files | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v41.0.0 | |
with: | |
files: docs/** | |
- name: Check to see if docs folder hasn't changed | |
if: steps.changed-files.outputs.any_changed == 'false' | |
run: | | |
echo "Docs have not been regenerated." | |
exit 1 | |
- name: Check if docs folder has changed | |
if: steps.changed-files.outputs.any_changed == 'true' | |
run: | | |
echo "Docs have been regenerated!" | |
exit 0 |