适配最新语法规则

This commit is contained in:
DLmaster
2024-09-06 21:20:04 +08:00
parent 8f01bf6027
commit cd5250c09f

View File

@@ -72,7 +72,7 @@ jobs:
id: read_version id: read_version
run: | run: |
$VERSION=(Get-Content -Path "更新说明.txt" -TotalCount 1).Trim() $VERSION=(Get-Content -Path "更新说明.txt" -TotalCount 1).Trim()
echo "::set-output name=version::$VERSION" echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@@ -105,9 +105,9 @@ jobs:
run: | run: |
release_id=$(gh release view $(head -n 1 更新说明.txt) --json id --jq .id) release_id=$(gh release view $(head -n 1 更新说明.txt) --json id --jq .id)
if [[ -z $release_id ]]; then if [[ -z $release_id ]]; then
echo "::set-output name=release_exists::false" echo "release_exists=false" >> $GITHUB_OUTPUT
else else
echo "::set-output name=release_exists::true" echo "release_exists=true" >> $GITHUB_OUTPUT
fi fi
env: env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}