Compare commits

..

4 Commits

Author SHA1 Message Date
peaceiris
476e697393 chore(release): 3.5.4-6
Some checks failed
Release / release (push) Has been cancelled
2020-03-16 08:23:57 +09:00
peaceiris
07d4ccdcfe chore(release): Add build assets 2020-03-16 08:23:57 +09:00
peaceiris
44bdada02c fix: skip logic 2020-03-15 23:23:30 +00:00
peaceiris
4377a42d7a chore(release): Remove build assets [skip ci] 2020-03-15 07:09:30 +09:00
6 changed files with 14 additions and 12 deletions

View File

@@ -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-6](https://github.com/peaceiris/actions-gh-pages/compare/v3.5.4-5...v3.5.4-6) (2020-03-15)
### fix
* skip logic ([44bdada](https://github.com/peaceiris/actions-gh-pages/commit/44bdada02c71f646d23ffefe1ea07d16386dbf83))
## [3.5.4-5](https://github.com/peaceiris/actions-gh-pages/compare/v3.5.4-4...v3.5.4-5) (2020-03-14)

View File

@@ -226,7 +226,7 @@ describe('skipOnFork()', () => {
expect(test).toBeFalsy();
});
test('return true on fork with empty deploy_key or personal_token', async () => {
test('return true on fork with no tokens', async () => {
const test = await skipOnFork(true, '', '', '');
expect(test).toBeTruthy();
});

View File

@@ -2272,10 +2272,7 @@ exports.addCNAME = addCNAME;
function skipOnFork(isForkRepository, githubToken, deployKey, personalToken) {
return __awaiter(this, void 0, void 0, function* () {
if (isForkRepository) {
if (githubToken) {
return false;
}
if (deployKey === '' && personalToken === '') {
if (githubToken === '' && deployKey === '' && personalToken === '') {
return true;
}
}

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "actions-github-pages",
"version": "3.5.4-5",
"version": "3.5.4-6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "actions-github-pages",
"version": "3.5.4-5",
"version": "3.5.4-6",
"description": "GitHub Actions for GitHub Pages",
"main": "lib/index.js",
"engines": {

View File

@@ -70,11 +70,7 @@ export async function skipOnFork(
personalToken: string
): Promise<boolean> {
if (isForkRepository) {
if (githubToken) {
return false;
}
if (deployKey === '' && personalToken === '') {
if (githubToken === '' && deployKey === '' && personalToken === '') {
return true;
}
}