Github_actions
https://docs.github.com/zh/actions/
每次推送自动打包发布release: https://github.com/softprops/action-gh-release
1name: release
2
3on: push
4permissions:
5 contents: write
6 discussions: write
7jobs:
8 build:
9 runs-on: ubuntu-latest
10 steps:
11 - name: Checkout
12 uses: actions/checkout@v3
13 - name: Zip the Build
14 run: zip -r xxx_latest ./
15 - name: Release
16 uses: softprops/action-gh-release@v1
17 with:
18 tag_name: latest
19 name: Release latest
20 files: |
21 xxx_latest.zip
新增标签时触发
1name: Issue Labeled
2
3# 新增标签时触发
4on:
5 issues:
6 types: [labeled]
7
8jobs:
9 issue-labeled:
10 # 打标签和提交 issue 的不是同一个人才执行
11 if: github.actor != github.event.issue.user.login
12 runs-on: ubuntu-latest
13 steps:
14 - name: Need more info
15 if: github.event.label.name == ' need more info'
16 uses: actions-cool/issues-helper@main
17 with:
18 actions: 'create-comment'
19 token: ${{ secrets.GITHUB_TOKEN }}
20 issue-number: ${{ github.event.issue.number }}
21 body: |
22 你好 @${{ github.event.issue.user.login }},你所提供的信息不足于我们排查问题, 请按照 issue 模板填写相关信息 (参考 #852 #848), 提供 gif, 截图, 代码片段, 配置信息, 版本号, 可复现链接等方式, 详细说明复现步骤, 感谢配合, 谢谢! 15 天内未回复issue自动关闭。
23
24 Hello, @${{ github.event.issue.user.login }}, the information you provided is not enough for us to troubleshoot the problem. Please complete the issue description (refer #852 #848), provide gifs, screenshots, config, version. And explain the reproduction steps in detail. Thanks so much for your cooperation! The issue will be closed without any replay within 15 days.