Skip to content

Commit

Permalink
Merge pull request #91 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 Apr 6, 2020
2 parents b08fa64 + 08cb0f5 commit ffffab9
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/add-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
tag:
name: Add release tag
runs-on: ubuntu-latest
timeout-minutes: 3
if: github.event.pull_request.merged == true && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/')
steps:
- uses: technote-space/load-config-action@v1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/broken-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
check:
name: Broken Link Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: technote-space/auto-cancel-redundant-job@v1
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
timeout-minutes: 5
env:
LINT: 1
steps:
Expand Down Expand Up @@ -56,6 +57,7 @@ jobs:
name: Coverage
needs: eslint
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
node: ['11', '12']
Expand Down Expand Up @@ -129,6 +131,7 @@ jobs:
name: Publish Package
needs: cover
runs-on: ubuntu-latest
timeout-minutes: 5
if: startsWith(github.ref, 'refs/tags/v')
strategy:
matrix:
Expand Down Expand Up @@ -212,6 +215,7 @@ jobs:
name: Create Release
needs: [package]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Get version
run: echo "::set-env name=TAG_NAME::${HEAD_REF#refs/tags/}"
Expand All @@ -238,6 +242,7 @@ jobs:
name: Slack
needs: publishRelease
runs-on: ubuntu-latest
timeout-minutes: 3
if: always()
steps:
- uses: technote-space/workflow-conclusion-action@v1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/issue-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
assign:
name: Assign issues to project
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: technote-space/load-config-action@v1
with:
Expand All @@ -20,5 +21,6 @@ jobs:
assignAuthor:
name: Assign author to issue
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: technote-space/assign-author@v1
3 changes: 3 additions & 0 deletions .github/workflows/pr-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
name: Assign PullRequest to Project
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: technote-space/load-config-action@v1
with:
Expand All @@ -22,11 +23,13 @@ jobs:
assignAuthor:
name: Assign author to PR
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: technote-space/assign-author@v1

addLabelsByBranch:
name: PR Labeler
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: technote-space/pr-labeler-action@v4
5 changes: 5 additions & 0 deletions .github/workflows/pr-updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
triage:
name: Pull Request Labeler
runs-on: ubuntu-latest
timeout-minutes: 3
if: "! startsWith(github.head_ref, 'release/')"
steps:
- uses: actions/labeler@v2
Expand All @@ -15,6 +16,7 @@ jobs:
history:
name: Pull Request Body
runs-on: ubuntu-latest
timeout-minutes: 3
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
steps:
- uses: technote-space/load-config-action@v1
Expand All @@ -30,6 +32,7 @@ jobs:
manageRelease:
name: Manage release
runs-on: ubuntu-latest
timeout-minutes: 3
if: "github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/') && ! startsWith(github.head_ref, 'release/v')"
steps:
- uses: technote-space/load-config-action@v1
Expand All @@ -43,6 +46,7 @@ jobs:
checkVersion:
name: Check package version
runs-on: ubuntu-latest
timeout-minutes: 3
if: "github.event.action == 'synchronize' && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/') && ! startsWith(github.head_ref, 'release/v')"
steps:
- uses: technote-space/load-config-action@v1
Expand Down Expand Up @@ -73,6 +77,7 @@ jobs:
checkPublish:
name: Check publish
runs-on: ubuntu-latest
timeout-minutes: 3
if: "github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/')"
steps:
- name: Set running flag
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/project-card-moved.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ jobs:
triage:
name: Auto card labeler
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: technote-space/auto-card-labeler@v1
3 changes: 2 additions & 1 deletion .github/workflows/sync-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ jobs:
release:
name: Sync workflows
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Sync workflows
uses: technote-space/create-pr-action@gh-actions
uses: technote-space/create-pr-action@v2
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
EXECUTE_COMMANDS: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
name: TOC Generator
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: technote-space/load-config-action@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
update:
name: Update npm dependencies
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: technote-space/load-config-action@v1
with:
Expand Down

0 comments on commit ffffab9

Please sign in to comment.