From 889b37d947de75a3f1249e8837054a196e9b2d6c 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build_and_run.yml b/.gitea/workflows/build_and_run.yml index 8843dc1..411826f 100644 --- a/.gitea/workflows/build_and_run.yml +++ b/.gitea/workflows/build_and_run.yml @@ -19,4 +19,5 @@ jobs: - name: Run challenge run: | cd day${{ matrix.day_number }} - cargo run --release ./input + echo ${{ vars[format('INPUT_DAY{0}', matrix.day_number) }} | base64 --decode > /tmp/input + cargo run --release /tmp/input