Skip to content
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

chore: sync workflows #148

Merged
merged 2 commits into from
Apr 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
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/add-test-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
tag:
name: Add test tag
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:
- 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
6 changes: 6 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 @@ -132,6 +134,7 @@ jobs:
name: Release GitHub Actions
needs: cover
runs-on: ubuntu-latest
timeout-minutes: 5
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
Expand All @@ -158,6 +161,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 @@ -241,6 +245,7 @@ jobs:
name: Create Release
needs: [release, 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 @@ -267,6 +272,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
1 change: 1 addition & 0 deletions .github/workflows/sync-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
release:
name: Sync workflows
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Sync workflows
uses: technote-space/create-pr-action@gh-actions
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