add update time

This commit is contained in:
Larvan2 2023-06-01 16:36:22 +08:00 committed by GitHub
parent 241ad7e6f2
commit 3ac6622c4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: