Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.
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: 1 addition & 1 deletion .github/workflows/add-version-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
tag:
name: Add version tag
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')
if: github.event.pull_request.merged == true && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/')
steps:
- name: Get version
run: echo "::set-env name=TAG_NAME::${HEAD_REF#release/}"
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
pull_request:
types: [opened, synchronize]
types: [opened]

name: Check version

Expand All @@ -11,15 +11,9 @@ jobs:
if: startsWith(github.event.pull_request.head.ref, 'release/')
steps:
- name: Set running flag
run: echo "::set-env name=RUNNING::"
run: echo "::set-env name=RUNNING::1"
- 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: echo "::set-env name=RUNNING::1"
if: github.event.action == 'opened'
- name: Set running flag
run: |
if [[ ! -f readme.txt ]]; then
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,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 assets/js/package.json ]] || ! < assets/js/package.json jq -r '.scripts | keys[]' | grep -qe '^cover$'; then
Expand Down Expand Up @@ -246,6 +249,9 @@ jobs:
- name: Set running flag
if: matrix.ACTIVATE_POPULAR_PLUGINS == 1 && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
run: echo "::set-env name=RUNNING::1"
- name: Set running flag
if: matrix.ACTIVATE_POPULAR_PLUGINS == 1 && startsWith(github.ref, 'refs/tags/v')
run: echo "::set-env name=RUNNING::1"
- name: Set running flag
run: |
if [[ ! -f composer.json ]] || ! < composer.json jq -r '.scripts | keys[]' | grep -qe '^phpunit$'; then
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: Pull Request opened

jobs:
assignToProject:
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
name: Assign PullRequest to Project
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -37,7 +38,7 @@ jobs:
checkVersion:
name: Check package version
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref, 'release/')
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/')
steps:
- name: Set running flag
run: echo "::set-env name=RUNNING::1"
Expand Down
81 changes: 13 additions & 68 deletions .github/workflows/pr-updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,84 +18,29 @@ jobs:
history:
name: Pull Request Body
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref, 'release/')
if: 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
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXCLUDE_MESSAGES: |
trigger workflow
Update TOC
Update package version
update TOC
update package version
TITLE: '## Changes'
LINK_ISSUE_KEYWORD: ${{ (startsWith(github.event.pull_request.head.ref, 'release/') && 'closes') || '' }}
FILTER_PR: true

assignToProject:
name: Assign PullRequest to Project
manageRelease:
name: Manage release
runs-on: ubuntu-latest
if: github.event.action == 'synchronize'
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/')
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
- name: Manage release
uses: technote-space/manage-release-action@v1
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH_PREFIX: release/
IGNORE_CONTEXT_CHECK: true
if: env.RUNNING
EXCLUDE_MESSAGES: |
update package version
update packages
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@v1
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
2 changes: 1 addition & 1 deletion .github/workflows/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ name: TOC Generator

jobs:
toc:
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
name: TOC Generator
runs-on: ubuntu-latest
steps:
- name: TOC Generator
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
4 changes: 2 additions & 2 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: technote-space/create-pr-action@v1
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXECUTE_COMMANDS: |
composer bin:download
composer bin:update
Expand All @@ -31,5 +30,6 @@ jobs:
PR_TITLE: 'chore: update dependencies (${PR_MERGE_REF})'
PR_DEFAULT_BRANCH_PREFIX: release/
PR_DEFAULT_BRANCH_NAME: ${PATCH_VERSION}
PR_DEFAULT_BRANCH_TITLE: release/${PATCH_VERSION}
PR_DEFAULT_BRANCH_TITLE: 'feat: release ${PATCH_VERSION}'
TARGET_BRANCH_PREFIX: release/
AUTO_MERGE_THRESHOLD_DAYS: 30