diff --git a/.gitea/workflows/build_and_run.yml b/.gitea/workflows/build_and_run.yml index 8843dc1..455ab3a 100644 --- a/.gitea/workflows/build_and_run.yml +++ b/.gitea/workflows/build_and_run.yml @@ -17,6 +17,10 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 - name: Run challenge + env: + DAY_FOLDER: day${{ matrix.day_number }} + INPUT_BASE64: ${{ vars[format('INPUT_DAY{0}', matrix.day_number) }} run: | - cd day${{ matrix.day_number }} - cargo run --release ./input + echo $INPUT_BASE64 | base64 --decode > /tmp/input + cd $DAY_FOLDER + cargo run --release /tmp/input