Skip to content

Commit

Permalink
Merge pull request #214 from technote-space/chore/chore-sync-workflows
Browse files Browse the repository at this point in the history
chore: sync workflows
  • Loading branch information
technote-space authored Feb 6, 2020
2 parents db5aa75 + 8b59bd6 commit 8a74ad3
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/check_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 3
- name: Check package version
uses: technote-space/package-version-check-action@v1
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
env:
LINT: 1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 3
- uses: technote-space/get-git-comment-action@v1
- uses: technote-space/get-diff-action@v1
with:
PREFIX_FILTER: |
src/
__tests__/
SUFFIX_FILTER: .ts
FILES: .eslintrc
if: "! contains(env.COMMIT_MESSAGE, '[skip ci]') && ! contains(env.COMMIT_MESSAGE, '[ci skip]')"
- name: Get Yarn Cache Directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand Down Expand Up @@ -58,8 +60,7 @@ jobs:
node: ['10', '11', '12']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 3
- uses: technote-space/get-git-comment-action@v1
- uses: technote-space/get-diff-action@v1
with:
PREFIX_FILTER: |
Expand All @@ -71,6 +72,7 @@ jobs:
FILES: |
yarn.lock
jest.config.js
if: "! contains(env.COMMIT_MESSAGE, '[skip ci]') && ! contains(env.COMMIT_MESSAGE, '[ci skip]')"
- name: Setup node
uses: actions/setup-node@v1
with:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/pr_updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,45 @@ jobs:
uses: actions/labeler@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

assignToProject:
name: Assign PullRequest to Project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-git-comment-action@v1
- name: Assign PullRequest to Project
if: contains(env.COMMIT_MESSAGE, 'trigger workflow')
uses: technote-space/create-project-card-action@v1
with:
PROJECT: Backlog
COLUMN: To do
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IGNORE_CONTEXT_CHECK: true

assignAuthor:
name: Assign author to PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-git-comment-action@v1
- name: Assign Author to PR
if: contains(env.COMMIT_MESSAGE, 'trigger workflow')
uses: technote-space/assign-author@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IGNORE_CONTEXT_CHECK: true

addLabelsByBranch:
name: PR Labeler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-git-comment-action@v1
- name: PR Labeler
if: contains(env.COMMIT_MESSAGE, 'trigger workflow')
uses: technote-space/pr-labeler-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IGNORE_CONTEXT_CHECK: true

4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 3
- name: Get Yarn Cache Directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand Down Expand Up @@ -46,8 +44,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 3
- name: Setup Node.js
uses: actions/setup-node@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ jobs:
uses: technote-space/toc-generator@v2
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_BRANCH_PREFIX: release/
FOLDING: true
MAX_HEADER_LEVEL: 3
TOC_TITLE: Details
3 changes: 2 additions & 1 deletion .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
schedule:
- cron: 0 9 * * 2,5
pull_request:
types: [opened, synchronize, reopened, closed]
types: [opened, reopened, closed]
repository_dispatch:
types: [update-deps]

Expand All @@ -16,6 +16,7 @@ jobs:
uses: technote-space/create-pr-action@v1
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXECUTE_COMMANDS: |
npx npm-check-updates -u --packageFile package.json
yarn install
Expand Down

0 comments on commit 8a74ad3

Please sign in to comment.