Skip to content

Commit 7457861

Browse files
Merge pull request #170 from technote-space/chore/chore-sync-workflows
chore: sync workflows
2 parents d2a4770 + 2d56ffa commit 7457861

File tree

13 files changed

+318
-259
lines changed

13 files changed

+318
-259
lines changed

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ categories:
66
labels:
77
- 'Type: Feature'
88
- 'Type: Refactoring'
9-
- 'Type: CI/CD'
109
- title: ':bug: Bug Fixes'
1110
labels:
1211
- 'Type: Bug'
1312
- 'Type: Security'
1413
- title: ':wrench: Maintenance'
1514
labels:
1615
- 'Type: Maintenance'
16+
- 'Type: CI/CD'
1717
- title: ':green_book: Docs'
1818
labels:
1919
- 'Type: Documentation'
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- master
5+
types: [closed]
6+
7+
name: Add version tag
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/v')
13+
steps:
14+
- name: Get version
15+
run: echo "::set-env name=TAG_NAME::${HEAD_REF#release/}"
16+
env:
17+
HEAD_REF: ${{ github.event.pull_request.head.ref }}
18+
- uses: actions/github-script@0.4.0
19+
with:
20+
github-token: ${{ secrets.ACCESS_TOKEN }}
21+
script: |
22+
github.git.createRef({
23+
owner: context.repo.owner,
24+
repo: context.repo.repo,
25+
ref: `refs/tags/${process.env.TAG_NAME}`,
26+
sha: context.sha
27+
})

.github/workflows/check_version.yml renamed to .github/workflows/check-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
on: push
2+
23
name: Check package version
4+
35
jobs:
46
checkVersion:
57
name: Check package version
68
runs-on: ubuntu-latest
79
steps:
810
- uses: actions/checkout@v2
9-
with:
10-
fetch-depth: 3
1111
- name: Check package version
1212
uses: technote-space/package-version-check-action@v1
1313
with:

0 commit comments

Comments
 (0)