From 3ba759ea6f9172156ab71c826c19f071c93f9af3 Mon Sep 17 00:00:00 2001 From: lsabor Date: Thu, 7 May 2026 14:09:01 -0700 Subject: [PATCH] use metac_name for retrieving metaculus api tokens --- .github/workflows/run-bot-aib-tournament.yaml | 1 + .github/workflows/run-bot-launcher.yaml | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-bot-aib-tournament.yaml b/.github/workflows/run-bot-aib-tournament.yaml index 9b16dc76..fb849ce7 100644 --- a/.github/workflows/run-bot-aib-tournament.yaml +++ b/.github/workflows/run-bot-aib-tournament.yaml @@ -1545,6 +1545,7 @@ jobs: uses: ./.github/workflows/run-bot-launcher.yaml with: bot_name: "METAC_UNIFORM_PROBABILITY_BOT_TOKEN" + metac_name: "metac-uniform-probability-bot" cache_key: asknews-cache-${{ github.run_id }} secrets: INPUT_METACULUS_TOKENS: ${{ secrets.METACULUS_TOKENS }} diff --git a/.github/workflows/run-bot-launcher.yaml b/.github/workflows/run-bot-launcher.yaml index 8cb249fa..c11bcba9 100644 --- a/.github/workflows/run-bot-launcher.yaml +++ b/.github/workflows/run-bot-launcher.yaml @@ -4,6 +4,10 @@ on: bot_name: required: true type: string + metac_name: + required: false + type: string + default: "" cache_key: required: false type: string @@ -119,9 +123,9 @@ jobs: if [ -n "$RAW_TOKEN" ]; then echo "METACULUS_TOKEN=$RAW_TOKEN" >> $GITHUB_ENV else - TOKEN=$(echo "$METACULUS_TOKENS" | jq -r --arg key "$BOT_NAME" '.[$key] // empty') + TOKEN=$(echo "$METACULUS_TOKENS" | jq -r --arg key "$METAC_NAME" '.[$key] // empty') if [ -z "$TOKEN" ]; then - echo "ERROR: No token found for $BOT_NAME in METACULUS_TOKENS" >&2 + echo "ERROR: No token found for $METAC_NAME in METACULUS_TOKENS" >&2 exit 1 fi echo "METACULUS_TOKEN=$TOKEN" >> $GITHUB_ENV @@ -129,7 +133,7 @@ jobs: env: RAW_TOKEN: ${{ secrets.INPUT_METACULUS_TOKEN }} METACULUS_TOKENS: ${{ secrets.INPUT_METACULUS_TOKENS }} - BOT_NAME: ${{ inputs.bot_name }} + METAC_NAME: ${{ inputs.metac_name }} - name: Run bot run: |