Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG committed Nov 24, 2022
1 parent 11ab545 commit aa9d135
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 45 deletions.
12 changes: 8 additions & 4 deletions .github/ISSUE_TEMPLATE/zh-cn-1-help.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ body:
- label: 已经搜索过,没有发现类似 issue。
- label: 已经搜索过[主题文档](https://volantis.js.org/),没有发现相关内容。
- label: 已经尝试使用过[最新版](https://github.com/volantis-x/hexo-theme-volantis/releases),问题依旧存在。
- type: input
- type: dropdown
id: theme-version
attributes:
label: 主题版本
description: 请输入主题版本号(可在主题配置文件中找到)或主题的 Commit ID(主题目录下执行 `git log -1` 查看)。
placeholder: "如: 5.0.0-alpha.9 或 abde57b"
description: 请选择您所使用的主题版本。
options:
- 6.x
- 5.x
- 4.x
- Other
validations:
required: true
- type: input
Expand Down Expand Up @@ -82,4 +86,4 @@ body:
```
</p></details>
2 changes: 2 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
with:
release-type: node
package-name: hexo-theme-volantis
include-v-in-tag: false
default-branch: dev
npm-publish:
if: ${{ contains(github.event.head_commit.message, 'chore(dev)') && contains(github.event.head_commit.message, 'release') && github.repository == 'volantis-x/hexo-theme-volantis' }}
runs-on: ubuntu-latest
Expand Down
56 changes: 15 additions & 41 deletions .github/workflows/sync-coding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,26 @@ name: Sync Coding

on:
push:
branches:
- main
- dev
# pull_request:
# branches: [ main ]
release:
types: [ published ]
types: [published]

jobs:
main:
if: github.ref == 'refs/heads/main'
sync:
runs-on: ubuntu-latest

steps:
- name: Run Curl
run: |
curl -u ${{ secrets.CODING_TOKEN_API }} \
-v -X POST 'https://volantis-x.coding.net/api/cci/job/387490/trigger' \
-H 'Content-Type: application/json' \
-d '
{
"envs": [
{
"name": "BRANCH",
"value": "main",
"sensitive": 0
}
]
}'
dev:
if: github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest

steps:
- name: Run Curl
run: |
curl -u ${{ secrets.CODING_TOKEN_API }} \
-v -X POST 'https://volantis-x.coding.net/api/cci/job/387490/trigger' \
-H 'Content-Type: application/json' \
-d '
{
"envs": [
{
"name": "BRANCH",
"value": "dev",
"sensitive": 0
}
]
}'
curl -u ${{ secrets.CODING_TOKEN_API }} \
-v -X POST 'https://volantis-x.coding.net/api/cci/job/387490/trigger' \
-H 'Content-Type: application/json' \
-d '
{
"envs": [
{
"name": "BRANCH",
"value": "${{ github.ref_name }}",
"sensitive": 0
}
]
}'

0 comments on commit aa9d135

Please sign in to comment.