浏览代码

specify tag separately

justheuristic 3 年之前
父节点
当前提交
d0c502bd21
共有 1 个文件被更改,包括 1 次插入0 次删除
  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