Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba0b7df03e | ||
|
|
87a781f6ce | ||
|
|
6fa13fefb3 | ||
|
|
efb69e1873 |
@@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
## [3.5.6](https://github.com/peaceiris/actions-gh-pages/compare/v3.5.5...v3.5.6) (2020-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### fix
|
||||||
|
|
||||||
|
* skip on fork (#159) ([6fa13fe](https://github.com/peaceiris/actions-gh-pages/commit/6fa13fefb393227eec5c9710d92e8bffa917546a)), closes [#159](https://github.com/peaceiris/actions-gh-pages/issues/159)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [3.5.5](https://github.com/peaceiris/actions-gh-pages/compare/v3.5.4...v3.5.5) (2020-03-16)
|
## [3.5.5](https://github.com/peaceiris/actions-gh-pages/compare/v3.5.4...v3.5.5) (2020-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1767,7 +1767,7 @@ function run() {
|
|||||||
const inps = get_inputs_1.getInputs();
|
const inps = get_inputs_1.getInputs();
|
||||||
get_inputs_1.showInputs(inps);
|
get_inputs_1.showInputs(inps);
|
||||||
const eventName = github_1.context.eventName;
|
const eventName = github_1.context.eventName;
|
||||||
if (eventName === 'pull_request') {
|
if (eventName === 'pull_request' || eventName === 'push') {
|
||||||
const isForkRepository = github_1.context.payload.repository.fork;
|
const isForkRepository = github_1.context.payload.repository.fork;
|
||||||
const isSkipOnFork = yield utils_1.skipOnFork(isForkRepository, inps.GithubToken, inps.DeployKey, inps.PersonalToken);
|
const isSkipOnFork = yield utils_1.skipOnFork(isForkRepository, inps.GithubToken, inps.DeployKey, inps.PersonalToken);
|
||||||
if (isSkipOnFork) {
|
if (isSkipOnFork) {
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "actions-github-pages",
|
"name": "actions-github-pages",
|
||||||
"version": "3.5.5",
|
"version": "3.5.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "actions-github-pages",
|
"name": "actions-github-pages",
|
||||||
"version": "3.5.5",
|
"version": "3.5.6",
|
||||||
"description": "GitHub Actions for GitHub Pages",
|
"description": "GitHub Actions for GitHub Pages",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export async function run(): Promise<void> {
|
|||||||
showInputs(inps);
|
showInputs(inps);
|
||||||
|
|
||||||
const eventName = context.eventName;
|
const eventName = context.eventName;
|
||||||
if (eventName === 'pull_request') {
|
if (eventName === 'pull_request' || eventName === 'push') {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const isForkRepository = (context.payload as any).repository.fork;
|
const isForkRepository = (context.payload as any).repository.fork;
|
||||||
const isSkipOnFork = await skipOnFork(
|
const isSkipOnFork = await skipOnFork(
|
||||||
|
|||||||
Reference in New Issue
Block a user