chore: Update workflows

pull/7224/head
wanghe-fit2cloud 2024-11-29 22:21:35 +08:00
parent f6e6f9cbfb
commit d139073948
9 changed files with 5 additions and 101 deletions

View File

@ -1,13 +1,10 @@
on: pull_request on: pull_request
name: General PR Handling for 1Panel
name: 1Panel 通用 PR 处理
permissions: permissions:
pull-requests: write pull-requests: write
jobs: jobs:
generic_handler: generic_handler:
name: 为 PR 添加标签 name: Add Labels to PR
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -1,11 +1,8 @@
on: on:
push: push:
# Sequence of patterns matched against refs/tags
tags: tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - 'v*'
name: Create Release And Upload assets name: Create Release And Upload assets
jobs: jobs:
create-release: create-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -36,22 +33,6 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
draft: true draft: true
body: |
# 一、安装和升级
## 1.1 一键安装
```sh
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh
```
## 1.2 在线升级
登录 1Panel Web 控制台,在页面右下角点击 **【检查更新】** 进行在线升级。
>更多信息请查阅在线文档https://1panel.cn/docs/
# 二、更新日志
files: | files: |
dist/*.tar.gz dist/*.tar.gz
dist/checksums.txt dist/checksums.txt

View File

@ -1,34 +0,0 @@
on:
pull_request:
branches:
- dev
push:
branches:
- dev
name: Build Test
jobs:
build-linux-binary:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.2'
- name: Build Web
id: build_frontend
run: |
cd frontend && npm install && npm run build:pro
env:
NODE_OPTIONS: --max-old-space-size=8192
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build Server
uses: goreleaser/goreleaser-action@v6
with:
args: release --snapshot --clean

View File

@ -1,17 +0,0 @@
on:
schedule:
- cron: "0 1 * * *"
name: Check recent handle issues
jobs:
check-recent-issues-not-handle:
runs-on: ubuntu-latest
steps:
- name: Check recent issues and send msg
uses: jumpserver/action-issues-alert@master
with:
hook: ${{ secrets.WECHAT_GROUP_WEB_HOOK }}
type: recent
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,17 +0,0 @@
on:
schedule:
- cron: "0 9 * * 1-5"
name: Check untimely handle issues
jobs:
check-untimely-handle-issues:
runs-on: ubuntu-latest
steps:
- name: Check untimely issues and send msg
uses: jumpserver/action-issues-alert@master
with:
hook: ${{ secrets.WECHAT_GROUP_WEB_HOOK }}
type: untimely
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,13 +1,10 @@
name: LLM Code Review name: LLM Code Review
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write
on: on:
pull_request: pull_request:
types: [opened, reopened, synchronize] types: [opened, reopened, synchronize]
jobs: jobs:
llm-code-review: llm-code-review:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -1,6 +1,5 @@
name: sync2gitee name: sync2gitee
on: [push] on: [push]
jobs: jobs:
repo-sync: repo-sync:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -1,6 +1,5 @@
name: Typos Check name: Typos Check
on: pull_request on: pull_request
jobs: jobs:
run: run:
name: Spell Check with Typos name: Spell Check with Typos
@ -8,6 +7,5 @@ jobs:
steps: steps:
- name: Checkout Actions Repository - name: Checkout Actions Repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Check spelling - name: Check spelling
uses: crate-ci/typos@master uses: crate-ci/typos@master