Skip to content

Commit

Permalink
Merge pull request #7 from alhankeser/feature/quiet-fail-if-no-files
Browse files Browse the repository at this point in the history
Check if there are any files and if not, exit quietly
  • Loading branch information
alhankeser authored Jul 28, 2024
2 parents 810dd25 + 2367c7c commit b0f2ee7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,18 @@ runs:
echo "required_measure=${required_measure//$'\n'/ }" >> $GITHUB_OUTPUT
echo "required_set=${required_set//$'\n'/ }" >> $GITHUB_OUTPUT
shell: bash
- name: Check Files
id: has_files_check
shell: bash
run: |
if [ "${{ steps.janitor_args.outputs.files }}" == "" ]; then
echo "has_files=false" >> $GITHUB_OUTPUT
else
echo "has_files=true" >> $GITHUB_OUTPUT
fi
- name: Run Looker Janitor
id: looker_janitor
if: ${{ steps.has_files_check.outputs.has_files == 'true' }}
run: |
python looker-janitor/main.py \
--files ${{ steps.janitor_args.outputs.files }} \
Expand Down

0 comments on commit b0f2ee7

Please sign in to comment.