Skip to content

Commit

Permalink
Removed Dupes
Browse files Browse the repository at this point in the history
  • Loading branch information
miloswrath committed Oct 1, 2024
1 parent 036d77c commit 0ffba70
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
runs-on: self-hosted
outputs:
data: ${{ steps.set_vars.outputs.json }}
has_data: ${{ steps.set_vars.outputs.has_data }}
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand Down Expand Up @@ -91,6 +92,14 @@ jobs:
done
json_array="$json_array]"
# Output the JSON array
echo "json=$json_array" >> $GITHUB_OUTPUT
# Determine if json_array is empty
if [ "$json_array" = "[]" ]; then
echo "has_data=false" >> $GITHUB_OUTPUT
else
echo "has_data=true" >> $GITHUB_OUTPUT
fi
# Output the JSON array
echo "json=$json_array" >> $GITHUB_OUTPUT
Expand All @@ -99,6 +108,7 @@ jobs:
name: Run Quality Control
runs-on: self-hosted
needs: process_raw
if: needs.process_raw.outputs.has_data == 'true'
strategy:
matrix:
config: ${{ fromJson(needs.process_raw.outputs.data) }}
Expand Down Expand Up @@ -154,7 +164,8 @@ jobs:
commit_results:
name: Commit and Push QC Results
runs-on: self-hosted
needs: run_qc
needs: [process_raw, run_qc]
if: needs.process_raw.outputs.has_data == 'true'

steps:
- name: Checkout Code
Expand Down

0 comments on commit 0ffba70

Please sign in to comment.