Skip to content

Commit

Permalink
Attempt to fix license detector
Browse files Browse the repository at this point in the history
  • Loading branch information
noah1013 committed May 1, 2024
1 parent b2baa01 commit dcfc07f
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ jobs:
- name: List contents of femr directory
run: ls -la femr

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

0 comments on commit dcfc07f

Please sign in to comment.