Skip to content

Commit

Permalink
修复工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat authored Oct 3, 2024
1 parent abffc32 commit e070777
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,22 @@ jobs:
path: |
./artifacts/Mods/CaiBotMod.tmod
- name: Set Release Tag
id: set_tag
run: echo "::set-output name=tag::v$(date +'%Y.%m.%d')"

- name: Update Tag
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
git tag -f v$(date +'%Y.%m.%d')
git push -f origin v$(date +'%Y.%m.%d')
git tag -f ${{ steps.set_tag.outputs.tag }}
git push -f origin ${{ steps.set_tag.outputs.tag }}
- name: Release Mod
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: ncipollo/release-action@v1
with:
tag: v$(date +'%Y.%m.%d')
name: v$(date +'%Y.%m.%d')
tag: ${{ steps.set_tag.outputs.tag }}
name: CaiBotMod ${{ steps.set_tag.outputs.tag }}
body: |
# CaiBotMod Ciallo~(∠・ω< )⌒☆
### 📅 只推荐使用最新版CaiBot扩展
Expand Down

0 comments on commit e070777

Please sign in to comment.