diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index e18891682b..c1771368ef 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -20,7 +20,7 @@ jobs: - name: Set variables run: | echo "RELEASE_NAME=Released on $(date +%Y%m%d%H%M)" >> $GITHUB_ENV - echo "TAG_NAME=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV + echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV echo "CHINA_DOMAINS_URL=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaMax/ChinaMax_Domain.txt" >> $GITHUB_ENV echo "GOOGLE_DOMAINS_URL=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/google.china.conf" >> $GITHUB_ENV echo "APPLE_DOMAINS_URL=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/apple.china.conf" >> $GITHUB_ENV @@ -258,13 +258,19 @@ jobs: tag: latest deleteOnlyFromDrafts: false + - run: | + cat > release.txt << 'EOF' + Release update at ${{ env.BUILDTIME }} + EOF + - name: Release and upload assets - uses: softprops/action-gh-release@v0.1.6 + uses: softprops/action-gh-release@v1 with: name: Latest tag_name: Latest draft: false prerelease: false + body_path: release.txt files: | ./publish/* env: