From c376d25f4934fca05bb07262ca71606268a295e3 Mon Sep 17 00:00:00 2001 From: Blair Currey <12960453+BlairCurrey@users.noreply.github.com> Date: Sat, 17 Feb 2024 22:55:15 -0500 Subject: [PATCH] chore: test reading var sharing between gh action steps --- .github/workflows/train-spread-predictor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/train-spread-predictor.yaml b/.github/workflows/train-spread-predictor.yaml index cb63fd2..1f1e6fa 100644 --- a/.github/workflows/train-spread-predictor.yaml +++ b/.github/workflows/train-spread-predictor.yaml @@ -39,6 +39,8 @@ jobs: latest_matchups_file=$(ls -1t nfl_analytics/assets/matchups-*.json | head -n 1) + echo "LATEST_MATCHUP_FILE=$latest_matchups_file" >> "$GITHUB_OUTPUT" + if [[ -f "$latest_matchups_file" ]]; then echo "Latest matchups file: $latest_matchups_file" matchups_count=$(jq length "$latest_matchups_file") @@ -52,8 +54,6 @@ jobs: exit 0 fi - echo "LATEST_MATCHUP_FILE=$latest_matchups_file" >> "$GITHUB_OUTPUT" - - name: Test LATEST_MATCHUP_FILE var env: LATEST_MATCHUP_FILE: ${{ steps.check-matchups.outputs.LATEST_MATCHUP_FILE }}