-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from technote-space/chore/chore-sync-workflows
chore: sync workflows
- Loading branch information
Showing
10 changed files
with
173 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
types: [closed] | ||
|
||
name: Add version tag | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/v') | ||
steps: | ||
- name: Get version | ||
run: echo "::set-env name=TAG_NAME::${HEAD_REF#release/}" | ||
env: | ||
HEAD_REF: ${{ github.event.pull_request.head.ref }} | ||
- uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.ACCESS_TOKEN }} | ||
script: | | ||
github.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `refs/tags/${process.env.TAG_NAME}`, | ||
sha: context.sha | ||
}) |
2 changes: 2 additions & 0 deletions
2
.github/workflows/check_version.yml → .github/workflows/check-version.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
on: push | ||
|
||
name: Check package version | ||
|
||
jobs: | ||
checkVersion: | ||
name: Check package version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
.github/workflows/issue_opened.yml → .github/workflows/issue-opened.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
on: | ||
issues: | ||
types: [opened] | ||
|
||
name: Issue opened | ||
|
||
jobs: | ||
assign: | ||
name: Assign issues to project | ||
|
2 changes: 2 additions & 0 deletions
2
.github/workflows/pr_opened.yml → .github/workflows/pr-opened.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
.github/workflows/project_card_moved.yml → .github/workflows/project-card-moved.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
on: | ||
project_card: | ||
types: [moved] | ||
|
||
name: Project Card Event | ||
|
||
jobs: | ||
triage: | ||
name: Auto card labeler | ||
|
Oops, something went wrong.