Skip to content

chore: sync workflows #294

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
Aug 8, 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
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ typescript:
- '**/*.ts'
php:
- '**/*.php'
python:
- '**/*.py'

'Type: Testing':
- '**/tests/*'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/add-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
pull_request:
branches:
- master
- main
- develop/v*
types: [closed]

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: echo "::set-env name=RUNNING::1"
- uses: actions/checkout@v2
- uses: technote-space/get-git-comment-action@v1
- uses: technote-space/get-diff-action@v1
- uses: technote-space/get-diff-action@v2
with:
PREFIX_FILTER: |
src/
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
run: echo "::set-env name=RUNNING::1"
- uses: actions/checkout@v2
- uses: technote-space/get-git-comment-action@v1
- uses: technote-space/get-diff-action@v1
- uses: technote-space/get-diff-action@v2
with:
PREFIX_FILTER: |
src/
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pr-opened.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
on:
pull_request:
pull_request_target:
types: [opened]

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
timeout-minutes: 3
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-updated.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on: pull_request
on: pull_request_target

name: Pull Request updated

Expand Down Expand Up @@ -55,6 +55,8 @@ jobs:
- name: Set running flag
run: echo "::set-env name=RUNNING::1"
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set running flag
run: |
if [[ ! -f package.json ]] || [[ $(< package.json jq -r '.version == null') == 'true' ]]; then
Expand Down Expand Up @@ -96,6 +98,8 @@ jobs:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
if: env.RUNNING
- uses: technote-space/can-npm-publish-action@v1
if: env.RUNNING