Skip to content

Changed license check script to view current directory instead of fem… #13

Changed license check script to view current directory instead of fem…

Changed license check script to view current directory instead of fem… #13

Workflow file for this run

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 .
- name: Check if file exists
run: |
if [ ! -f "./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