Skip to content

Commit

Permalink
Merge commit 'e9bf2da1c4dceaea0d2fedd42ed5b377ebcab4c1' into release/…
Browse files Browse the repository at this point in the history
…v0.0.7
  • Loading branch information
technote-space committed Feb 25, 2020
2 parents 8d2d61f + e9bf2da commit 2fb7bf5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 74 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ jobs:
- name: Set running flag
if: matrix.node == '12' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
run: echo "::set-env name=RUNNING::1"
- name: Set running flag
if: matrix.node == '12' && startsWith(github.ref, 'refs/tags/v')
run: echo "::set-env name=RUNNING::1"
- name: Set running flag
run: |
if [[ ! -f package.json ]] || ! < package.json jq -r '.scripts | keys[]' | grep -qe '^cover$'; then
Expand Down
74 changes: 3 additions & 71 deletions .github/workflows/pr-updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
history:
name: Pull Request Body
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref, 'release/')
if: startsWith(github.event.pull_request.head.ref, 'release/') || github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
steps:
- name: Pull Request Body
uses: technote-space/pr-commit-body-action@v1
Expand All @@ -29,73 +29,5 @@ jobs:
Update TOC
Update package version
TITLE: '## Changes'

assignToProject:
name: Assign PullRequest to Project
runs-on: ubuntu-latest
if: github.event.action == 'synchronize'
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
if: github.event.action == 'synchronize'
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
if: github.event.action == 'synchronize'
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

checkVersion:
name: Check package version
runs-on: ubuntu-latest
if: github.event.action == 'synchronize' && startsWith(github.event.pull_request.head.ref, 'release/')
steps:
- name: Set running flag
run: echo "::set-env name=RUNNING::"
- uses: actions/checkout@v2
- uses: technote-space/get-git-comment-action@v1
- name: Set running flag
run: echo "::set-env name=RUNNING::1"
if: contains(env.COMMIT_MESSAGE, 'trigger workflow')
- name: Set running flag
run: |
if [[ ! -f package.json ]] || [[ $(< package.json jq -r '.version == null') == 'true' ]]; then
echo "::set-env name=RUNNING::"
fi
- name: Check package version
uses: technote-space/package-version-check-action@v1
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH_PREFIX: release/
IGNORE_CONTEXT_CHECK: true
if: env.RUNNING
LINK_ISSUE_KEYWORD: ${{ (startsWith(github.event.pull_request.head.ref, 'release/') && 'closes') || '' }}
FILTER_PR: true
1 change: 0 additions & 1 deletion .github/workflows/sync-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
uses: technote-space/create-pr-action@gh-actions
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXECUTE_COMMANDS: |
rm -rdf .github/workflows/.tmp
mkdir -p .github/workflows/.tmp
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ 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
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ 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 2fb7bf5

Please sign in to comment.