Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dea6ee7419 | ||
|
|
2ca4395141 | ||
|
|
6546aa9608 | ||
|
|
a60eec20ec |
@@ -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.
|
||||
|
||||
## [3.5.4-1](https://github.com/peaceiris/actions-gh-pages/compare/v3.5.4-0...v3.5.4-1) (2020-03-14)
|
||||
|
||||
|
||||
### fix
|
||||
|
||||
* isForkRepository ([6546aa9](https://github.com/peaceiris/actions-gh-pages/commit/6546aa96085e89bd91adc56f58be665766e93a1e))
|
||||
|
||||
|
||||
|
||||
## [3.5.4-0](https://github.com/peaceiris/actions-gh-pages/compare/v3.5.3...v3.5.4-0) (2020-03-14)
|
||||
|
||||
|
||||
|
||||
@@ -2762,7 +2762,7 @@ function addCNAME(workDir, content) {
|
||||
exports.addCNAME = addCNAME;
|
||||
function skipOnFork(githubToken, deployKey, personalToken) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const isForkRepository = github_1.context.payload.repository.fork.toUpperCase() === 'TRUE';
|
||||
const isForkRepository = github_1.context.payload.repository.fork === 'true';
|
||||
if (!isForkRepository || githubToken) {
|
||||
return false;
|
||||
}
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "actions-github-pages",
|
||||
"version": "3.5.4-0",
|
||||
"version": "3.5.4-1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "actions-github-pages",
|
||||
"version": "3.5.4-0",
|
||||
"version": "3.5.4-1",
|
||||
"description": "GitHub Actions for GitHub Pages",
|
||||
"main": "lib/index.js",
|
||||
"engines": {
|
||||
|
||||
@@ -71,7 +71,7 @@ export async function skipOnFork(
|
||||
): Promise<boolean> {
|
||||
const isForkRepository =
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(context.payload as any).repository.fork.toUpperCase() === 'TRUE';
|
||||
(context.payload as any).repository.fork === 'true';
|
||||
|
||||
if (!isForkRepository || githubToken) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user