github:tagname

This commit is contained in:
xiaoyifang 2022-04-09 18:04:38 +08:00
parent 9a565d583a
commit 6712e6cf96
8 changed files with 8 additions and 8 deletions

View file

@ -40,7 +40,7 @@ jobs:
id: vars id: vars
run: | run: |
echo "::set-output name=sha_short::$(git rev-parse --short=8 HEAD)" echo "::set-output name=sha_short::$(git rev-parse --short=8 HEAD)"
echo "::set-output name=release_hm::$(date +'%y%m%d%H%M')" echo "::set-output name=release_hm::$(date +'%y%m%d')"
- name: Bump version and push tag - name: Bump version and push tag
id: tag_version id: tag_version
uses: mathieudutour/github-tag-action@v6.0 uses: mathieudutour/github-tag-action@v6.0

View file

@ -99,7 +99,7 @@ jobs:
echo "::set-output name=release_date::$(date +'%Y%m%d')" echo "::set-output name=release_date::$(date +'%Y%m%d')"
echo "::set-output name=release_time::$(date +'%H%M%S')" echo "::set-output name=release_time::$(date +'%H%M%S')"
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')" echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
echo "::set-output name=release_hm::$(date +'%y%m%d%H%M')" echo "::set-output name=release_hm::$(date +'%y%m%d')"
previousTag=$(git tag --sort=-creatordate | sed -n 2p) previousTag=$(git tag --sort=-creatordate | sed -n 2p)
echo "previousTag : $previousTag" echo "previousTag : $previousTag"

View file

@ -104,7 +104,7 @@ jobs:
echo "::set-output name=release_date::$(date +'%Y%m%d')" echo "::set-output name=release_date::$(date +'%Y%m%d')"
echo "::set-output name=release_time::$(date +'%H%M%S')" echo "::set-output name=release_time::$(date +'%H%M%S')"
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')" echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
echo "::set-output name=release_hm::$(date +'%y%m%d%H%M')" echo "::set-output name=release_hm::$(date +'%y%m%d')"
# tag 上传Release # tag 上传Release
# - name: uploadRelease # - name: uploadRelease
# uses: svenstaro/upload-release-action@v2 # uses: svenstaro/upload-release-action@v2

View file

@ -101,7 +101,7 @@ jobs:
echo "::set-output name=release_date::$(date +'%Y%m%d')" echo "::set-output name=release_date::$(date +'%Y%m%d')"
echo "::set-output name=release_time::$(date +'%H%M%S')" echo "::set-output name=release_time::$(date +'%H%M%S')"
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')" echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
echo "::set-output name=release_hm::$(date +'%y%m%d%H%M')" echo "::set-output name=release_hm::$(date +'%y%m%d')"
previousTag=$(git tag --sort=-creatordate | sed -n 2p) previousTag=$(git tag --sort=-creatordate | sed -n 2p)
echo "previousTag : $previousTag" echo "previousTag : $previousTag"

View file

@ -95,7 +95,7 @@ jobs:
echo "::set-output name=release_time::$(date +'%H%M%S')" echo "::set-output name=release_time::$(date +'%H%M%S')"
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')" echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
echo "::set-output name=appname::$(ls *.AppImage*)" echo "::set-output name=appname::$(ls *.AppImage*)"
echo "::set-output name=release_hm::$(date +'%y%m%d%H%M')" echo "::set-output name=release_hm::$(date +'%y%m%d')"
previousTag=$(git tag --sort=-creatordate | sed -n 2p) previousTag=$(git tag --sort=-creatordate | sed -n 2p)
echo "previousTag : $previousTag" echo "previousTag : $previousTag"

View file

@ -92,7 +92,7 @@ jobs:
echo "::set-output name=release_time::$(date +'%H%M%S')" echo "::set-output name=release_time::$(date +'%H%M%S')"
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')" echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
echo "::set-output name=appname::$(ls *.AppImage*)" echo "::set-output name=appname::$(ls *.AppImage*)"
echo "::set-output name=release_hm::$(date +'%y%m%d%H%M')" echo "::set-output name=release_hm::$(date +'%y%m%d')"
previousTag=$(git tag --sort=-creatordate | sed -n 2p) previousTag=$(git tag --sort=-creatordate | sed -n 2p)
echo "previousTag : $previousTag" echo "previousTag : $previousTag"

View file

@ -78,7 +78,7 @@ jobs:
echo "::set-output name=release_date::$(date +'%Y%m%d')" echo "::set-output name=release_date::$(date +'%Y%m%d')"
echo "::set-output name=release_time::$(date +'%H%M%S')" echo "::set-output name=release_time::$(date +'%H%M%S')"
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')" echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
echo "::set-output name=release_hm::$(date +'%y%m%d%H%M')" echo "::set-output name=release_hm::$(date +'%y%m%d')"
previousTag=$(git tag --sort=-creatordate | sed -n 2p) previousTag=$(git tag --sort=-creatordate | sed -n 2p)
echo "previousTag : $previousTag" echo "previousTag : $previousTag"

View file

@ -74,7 +74,7 @@ jobs:
echo "::set-output name=release_date::$(date +'%Y%m%d')" echo "::set-output name=release_date::$(date +'%Y%m%d')"
echo "::set-output name=release_time::$(date +'%H%M%S')" echo "::set-output name=release_time::$(date +'%H%M%S')"
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')" echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
echo "::set-output name=release_hm::$(date +'%y%m%d%H%M')" echo "::set-output name=release_hm::$(date +'%y%m%d')"
previousTag=$(git tag --sort=-creatordate | sed -n 2p) previousTag=$(git tag --sort=-creatordate | sed -n 2p)
echo "previousTag : $previousTag" echo "previousTag : $previousTag"