File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,12 +33,29 @@ jobs:
3333 - name : Create Release PR
3434 run : |
3535 # Run cargo release and capture the output
36- # Run cargo release and capture both full output and last line
36+ echo "Starting release process..."
3737 echo "Current time1: $(date)"
38- RELEASE_OUTPUT=$(deno run -A scripts/cargo-release-cli.ts ${{ steps.version.outputs.version }} | tail -n 1)
38+ echo "Running deno script with version: ${{ steps.version.outputs.version }}"
39+
40+ # 保存完整输出到文件
41+ deno run -A scripts/cargo-release-cli.ts ${{ steps.version.outputs.version }} 2>&1 | tee debug_output.log
42+
43+ # 获取最后一行输出
44+ RELEASE_OUTPUT=$(tail -n 1 debug_output.log)
45+
3946 echo "Current time2: $(date)"
47+ echo "Full debug output:"
48+ cat debug_output.log
49+ echo "Last line output: $RELEASE_OUTPUT"
4050 echo "excluded_flags=$RELEASE_OUTPUT"
4151 echo "excluded_flags=$RELEASE_OUTPUT" >> $GITHUB_OUTPUT
52+
53+ # 检查 deno 脚本的退出状态
54+ if [ $? -ne 0 ]; then
55+ echo "Error: Deno script failed with exit code $?"
56+ exit 1
57+ fi
58+
4259 git config --global user.name "GitHub Actions"
4360 git config --global user.email "actions@github.com"
4461 git add .
You can’t perform that action at this time.
0 commit comments