Skip to content

Attempt to fix license detector #12

Attempt to fix license detector

Attempt to fix license detector #12

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 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