mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2025-01-13 00:03:55 +08:00
release_body
This commit is contained in:
parent
e8919e0357
commit
f1c5e88938
16
.github/workflows/run.yml
vendored
16
.github/workflows/run.yml
vendored
@ -257,21 +257,29 @@ jobs:
|
|||||||
tag: latest
|
tag: latest
|
||||||
deleteOnlyFromDrafts: false
|
deleteOnlyFromDrafts: false
|
||||||
|
|
||||||
- run: |
|
- name: Create Release Body
|
||||||
|
id: create_release_body
|
||||||
|
run: |
|
||||||
cat > release.txt << 'EOF'
|
cat > release.txt << 'EOF'
|
||||||
Release update at ${{ env.BUILDTIME }}
|
Release update at ${{ env.BUILDTIME }}
|
||||||
更新时间 ${{ env.BUILDTIMECN }}
|
更新时间 ${{ env.BUILDTIMECN }}
|
||||||
EOF
|
EOF
|
||||||
|
r=$(cat release.txt)
|
||||||
|
r="${r//'%'/'%25'}"
|
||||||
|
r="${r//$'\n'/'%0A'}"
|
||||||
|
r="${r//$'\r'/'%0D'}"
|
||||||
|
echo "RELEASE_BODY=$r" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Release and upload assets
|
- name: Create and Upload Release
|
||||||
|
id: upload_release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
release_name: ${{ env.RELEASE_NAME }}
|
release_name: Release ${{ env.BUILDTIME }}
|
||||||
tag: latest
|
tag: latest
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file: ./publish/*
|
file: ./publish/*
|
||||||
body: release.txt
|
body: ${{ env.RELEASE_BODY }}
|
||||||
|
|
||||||
- name: Git push assets to "release" branch
|
- name: Git push assets to "release" branch
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user