-
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add CI on external PR * avoid duplicate * and no CI for md modifications
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,18 @@ name: Build-Dist | |
# Run this workflow every time a new commit pushed to your repository | ||
on: | ||
push: | ||
paths-ignore: | ||
- '**/*.md' | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
|
||
jobs: | ||
tests: | ||
|
||
runs-on: ${{ matrix.operating-system }} | ||
# We want to run on external PRs, but not on our own internal PRs as they'll be run by the push to the branch. | ||
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) | ||
|
||
# Service containers to run with `container-job` | ||
services: | ||
|
@@ -41,6 +48,11 @@ jobs: | |
key: cache-v1 # can be any string, change to clear the extension cache. | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
# Checks out a copy of your repository on the ubuntu machine | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,19 @@ name: Build-Full-SQL | |
# Run this workflow every time a new commit pushed to your repository | ||
on: | ||
push: | ||
paths-ignore: | ||
- '**/*.md' | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
|
||
jobs: | ||
tests: | ||
|
||
runs-on: ${{ matrix.operating-system }} | ||
|
||
# We want to run on external PRs, but not on our own internal PRs as they'll be run by the push to the branch. | ||
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) | ||
|
||
# Service containers to run with `container-job` | ||
services: | ||
# Label used to access the service container | ||
|
@@ -41,6 +48,11 @@ jobs: | |
key: cache-v1 # can be any string, change to clear the extension cache. | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
# Checks out a copy of your repository on the ubuntu machine | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|