Skip to content

Commit 4662901

Browse files
committed
remove debug output and use reusable job
1 parent c63a002 commit 4662901

File tree

2 files changed

+7
-25
lines changed

2 files changed

+7
-25
lines changed

.github/workflows/check_export.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,14 @@ on:
1313
description: 'Reflex dep (raw pip spec)'
1414

1515
jobs:
16-
list-examples:
17-
runs-on: ubuntu-latest
18-
outputs:
19-
examples: ${{ steps.generate-matrix.outputs.examples }}
20-
steps:
21-
- uses: actions/checkout@v4
22-
- name: Generate Matrix
23-
id: generate-matrix
24-
run: |
25-
EXAMPLES="$(find . -not -name '.*' -maxdepth 1 -type d | cut -f2 -d/ | sort | grep -vw chakra_apps | jq -R | jq -s -c)"
26-
echo $EXAMPLES
27-
echo "examples=$EXAMPLES" >> $GITHUB_OUTPUT
28-
16+
list-templates:
17+
uses: ./.github/workflows/list-templates.yml
18+
2919
check-export:
30-
needs: [list-examples]
20+
needs: [list-templates]
3121
strategy:
3222
matrix:
33-
example: ${{ fromJSON(needs.list-examples.outputs.examples) }}
23+
folder: ${{ fromJSON(needs.list-templates.outputs.templates) }}
3424
fail-fast: false
3525
runs-on: ubuntu-latest
3626
steps:
@@ -42,7 +32,7 @@ jobs:
4232
python-version: 3.9
4333
- id: export-check
4434
run: |
45-
f=${{ matrix.example }}
35+
f=${{ matrix.folder }}
4636
if [[ ! -d $f ]]; then
4737
echo "$f is not a directory!"
4838
exit 1
@@ -80,7 +70,7 @@ jobs:
8070
8171
- name: Check for DeprecationWarning in logs
8272
run: |
83-
cd ${{ matrix.example }}
73+
cd ${{ matrix.folder }}
8474
dep_lines=$(grep -i "DeprecationWarning:" export_logs.txt || true)
8575
if [ -n "$dep_lines" ]; then
8676
echo "Found Deprecation warning:"

.github/workflows/deploy.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ jobs:
1313
list-templates:
1414
uses: ./.github/workflows/list-templates.yml
1515

16-
debug-output:
17-
needs: list-templates
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: Debug output
21-
run: |
22-
echo "Templates: ${{ needs.list-templates.outputs.templates }}"
23-
2416
deploy:
2517
needs: list-templates
2618
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)