From 0218ede635ca894527f8a4e9f0ff7041c54e23e9 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Wed, 4 Dec 2024 00:10:27 +0100 Subject: [PATCH] wip: added dynamic input Signed-off-by: Louis Vallat --- .gitea/workflows/build_and_run.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build_and_run.yml b/.gitea/workflows/build_and_run.yml index 8843dc1..ac98117 100644 --- a/.gitea/workflows/build_and_run.yml +++ b/.gitea/workflows/build_and_run.yml @@ -17,6 +17,9 @@ 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 + cd $DAY_FOLDER + cargo run --release input