Attempt to fix license detector #12
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: Check for LICENSE File in femr Directory | |
on: | |
push: | |
branches: | |
- temr-dev-noah | |
jobs: | |
check-license-file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: List contents of femr directory | |
run: ls -laR femr | |
- name: Check if file exists | |
run: | | |
if [ ! -f "femr/LICENSE" ]; then | |
echo "File does not exist. Exiting with failure." | |
exit 1 | |
fi | |
# - name: Check LICENSE file existence in femr directory | |
# id: check_license | |
# uses: andstor/file-existence-action@v3 | |
# with: | |
# files: "femr/LICENSE" | |
# fail: true | |
# | |
# - name: Fail if LICENSE does not exist in femr directory | |
# if: steps.check_license.outputs.files_exists == 'false' | |
# run: exit 1 |