Skip to content

chore: sync workflows #160

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 15, 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
41 changes: 22 additions & 19 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
## Description: 概要
<!-- Please describe purpose of change or related Issue number -->
<!-- 変更の目的 もしくは 関連する Issue 番号 -->

## Changes: 変更内容
<!-- Detail of changes (please add screenshots if applicable) -->
<!-- ビューの変更がある場合はスクショによる比較などがあるとわかりやすい -->

## Expected Impact: 影響範囲
<!-- e.g. I changed this function, which might be affect that function. -->
<!-- この関数を変更したのでこの機能にも影響がある、など -->

## Operating Requirements: 動作要件
<!-- e.g. Environment variables / Dependencies / DB updates -->
<!-- 動作に必要な 環境変数 / 依存関係 / DBの更新 など -->

## Additional context: 補足
<!-- e.g. Point or review / Cautions when trying in a local environment -->
<!-- レビューをする際に見てほしい点、ローカル環境で試す際の注意点、など -->
## Description: 概要
<!-- Please describe purpose of change or related Issue number -->
<!-- 変更の目的 もしくは 関連する Issue 番号 -->

## Changes: 変更内容
<!-- Detail of changes (please add screenshots if applicable) -->
<!-- ビューの変更がある場合はスクショによる比較などがあるとわかりやすい -->

<!-- START pr-commits -->
<!-- END pr-commits -->

## Expected Impact: 影響範囲
<!-- e.g. I changed this function, which might be affect that function. -->
<!-- この関数を変更したのでこの機能にも影響がある、など -->

## Operating Requirements: 動作要件
<!-- e.g. Environment variables / Dependencies / DB updates -->
<!-- 動作に必要な 環境変数 / 依存関係 / DBの更新 など -->

## Additional context: 補足
<!-- e.g. Point or review / Cautions when trying in a local environment -->
<!-- レビューをする際に見てほしい点、ローカル環境で試す際の注意点、など -->
5 changes: 3 additions & 2 deletions .github/workflows/add-test-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
- uses: actions/checkout@v2
- uses: technote-space/get-git-comment-action@v1
- name: Get version
run: echo "::set-env name=TAG_NAME::${HEAD_REF#release/}"
run: echo "::set-env name=TAG_NAME::${HEAD_REF#release/}.${RUN_ID}"
env:
HEAD_REF: ${{ github.event.pull_request.head.ref }}
RUN_ID: ${{ github.run_id }}
if: "contains(env.COMMIT_MESSAGE, 'trigger workflow') || contains(env.COMMIT_MESSAGE, 'chore: update ')"
- uses: actions/github-script@0.4.0
with:
Expand All @@ -25,6 +26,6 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/test/${process.env.TAG_NAME}`,
sha: context.sha
sha: context.payload.pull_request.head.sha
})
if: "contains(env.COMMIT_MESSAGE, 'trigger workflow') || contains(env.COMMIT_MESSAGE, 'chore: update ')"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
run: echo "::set-env name=RUNNING::"
if: "! env.GIT_DIFF"
- name: Set running flag
if: matrix.node == '12' && startsWith(github.ref, 'refs/tags/')
if: matrix.node == '12' && github.ref == join('refs/heads/', github.event.repository.default_branch)
run: echo "::set-env name=RUNNING::1"
- name: Set running flag
run: |
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/pr-updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

history:
name: Pull Request Body
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref, 'release/')
steps:
- name: Pull Request Body
uses: technote-space/pr-commit-body-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXCLUDE_MESSAGES: |
trigger workflow
Update TOC
Update package version
TITLE: '## Changes'

assignToProject:
name: Assign PullRequest to Project
runs-on: ubuntu-latest
Expand Down