forked from yixinnb/test
更新 .gitea/workflows/demo.yaml
This commit is contained in:
@@ -11,11 +11,6 @@ jobs:
|
||||
process-python:
|
||||
runs-on: auto_judgement_py
|
||||
steps:
|
||||
- name: Set up Node.js
|
||||
uses: github.com/actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Checkout PR code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -48,17 +43,6 @@ jobs:
|
||||
fi
|
||||
echo "name=$NAME" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Run Docker container to process script
|
||||
id: docker-process
|
||||
run: |
|
||||
# 假设你的 Docker 镜像已预装在服务器,且支持输入文件路径
|
||||
SCORE=$(docker run --rm -v $(pwd):/data your-docker-image python /data/${{ steps.find-file.outputs.new_py_file }})
|
||||
if [ -z "$SCORE" ]; then
|
||||
echo "Docker processing failed!"
|
||||
exit 1
|
||||
fi
|
||||
echo "score=$SCORE" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Rename and archive file
|
||||
run: |
|
||||
mkdir -p code # 创建归档目录
|
||||
|
||||
Reference in New Issue
Block a user