Jelajahi Sumber

specify tag separately

justheuristic 3 tahun lalu
induk
melakukan
d0c502bd21
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      .github/workflows/run-tests.yaml

+ 1 - 0
.github/workflows/run-tests.yaml

@@ -33,6 +33,7 @@ jobs:
           name='test-bloomd-350m-$HF_TAG', organization='bloom-testing')" || true
       - name: Convert model and push to hub
         run: |
+          export HF_TAG=$(python -c "import os; print(os.environ.get('GITHUB_BASE_REF') or os.environ.get('GITHUB_REF_NAME'))")
           python -m cli.convert_model --model bigscience/bloom-350m  --output_path ./converted_model \
             --output_repo bloom-testing/test-bloomd-350m-$HF_TAG --use_auth_token $BLOOM_TESTING_WRITE_TOKEN