Skip to content

chore: sync workflows #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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