Skip to content

Commit 0674e55

Browse files
JamesIvesdependabot[bot]garazdawi
authored
Release: 4.1.4 (#749)
* Docs * Release 4.1.3 📣 * Bump @types/node from 15.0.2 to 15.0.3 (#716) * Bump @types/node from 15.0.3 to 15.3.1 (#723) * Bump @typescript-eslint/eslint-plugin from 4.23.0 to 4.24.0 (#721) * Bump @typescript-eslint/parser from 4.23.0 to 4.25.0 (#730) * Bump jest-circus from 26.6.3 to 27.0.0 (#729) * Bump @types/node from 15.3.1 to 15.6.1 (#728) * Bump @actions/core from 1.2.7 to 1.3.0 (#726) * Bump @actions/github from 4.0.0 to 5.0.0 (#720) * Bump @typescript-eslint/eslint-plugin from 4.24.0 to 4.25.0 (#727) * Bump eslint from 7.26.0 to 7.27.0 (#724) Bumps [eslint](https://github.com/eslint/eslint) from 7.26.0 to 7.27.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v7.26.0...v7.27.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump typescript from 4.2.4 to 4.3.2 (#733) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.4 to 4.3.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v4.2.4...v4.3.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump jest-circus from 27.0.0 to 27.0.1 (#732) Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 27.0.0 to 27.0.1. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/commits/v27.0.1/packages/jest-circus) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Deploying to dev from @ 38edd9e 🚀 * Fix output size check (#744) * Update README.md * Bump @typescript-eslint/eslint-plugin from 4.25.0 to 4.26.0 (#739) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.25.0 to 4.26.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.0/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 4.25.0 to 4.26.0 (#740) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.25.0 to 4.26.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.0/packages/parser) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump jest-circus from 27.0.1 to 27.0.4 (#745) Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 27.0.1 to 27.0.4. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/commits/v27.0.4/packages/jest-circus) --- updated-dependencies: - dependency-name: jest-circus dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/node from 15.6.1 to 15.12.0 (#747) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.6.1 to 15.12.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump prettier from 2.2.1 to 2.3.0 (#703) Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.2.1...2.3.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ws from 7.2.5 to 7.4.6 (#748) Bumps [ws](https://github.com/websockets/ws) from 7.2.5 to 7.4.6. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@7.2.5...7.4.6) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Formatting fixes * Assigning readme changes for 4.1.4 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JamesIves <JamesIves@users.noreply.github.com> Co-authored-by: Lukas Larsson <garazdawi@gmail.com>
1 parent 93065a8 commit 0674e55

File tree

7 files changed

+1017
-217
lines changed

7 files changed

+1017
-217
lines changed

.github/workflows/sponsors.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
minimum: 500
2121

2222
- name: Deploy to GitHub Pages
23-
uses: JamesIves/github-pages-deploy-action@4.1.2
23+
uses: JamesIves/github-pages-deploy-action@4.1.4
2424
with:
2525
branch: dev
2626
folder: '.'

README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
npm run build
6161
6262
- name: Deploy 🚀
63-
uses: JamesIves/github-pages-deploy-action@4.1.2
63+
uses: JamesIves/github-pages-deploy-action@4.1.4
6464
with:
6565
branch: gh-pages # The branch the action should deploy to.
6666
folder: build # The folder the action should deploy.
@@ -178,7 +178,7 @@ With this configured you can then set the `ssh-key` part of the action to your p
178178

179179
```yml
180180
- name: Deploy 🚀
181-
uses: JamesIves/github-pages-deploy-action@4.1.2
181+
uses: JamesIves/github-pages-deploy-action@4.1.4
182182
with:
183183
branch: gh-pages
184184
folder: site
@@ -207,7 +207,7 @@ jobs:
207207
npm run build
208208
209209
- name: Deploy 🚀
210-
uses: JamesIves/github-pages-deploy-action@4.1.2
210+
uses: JamesIves/github-pages-deploy-action@4.1.4
211211
with:
212212
branch: gh-pages
213213
folder: build
@@ -274,9 +274,8 @@ jobs:
274274
name: site
275275
276276
- name: Deploy 🚀
277-
uses: JamesIves/github-pages-deploy-action@4.1.2
277+
uses: JamesIves/github-pages-deploy-action@4.1.4
278278
with:
279-
token: ${{ secrets.ACCESS_TOKEN }}
280279
branch: gh-pages
281280
folder: 'site' # The deployment folder should match the name of the artifact. Even though our project builds into the 'build' folder the artifact name of 'site' must be placed here.
282281
```
@@ -296,7 +295,7 @@ If you use a [container](https://help.github.com/en/actions/automating-your-work
296295
apt-get update && apt-get install -y rsync
297296
298297
- name: Deploy 🚀
299-
uses: JamesIves/github-pages-deploy-action@4.1.2
298+
uses: JamesIves/github-pages-deploy-action@4.1.4
300299
```
301300

302301
---
@@ -327,7 +326,7 @@ jobs:
327326
npm run build
328327
329328
- name: Deploy 🚀
330-
uses: JamesIves/github-pages-deploy-action@4.1.2
329+
uses: JamesIves/github-pages-deploy-action@4.1.4
331330
with:
332331
branch: gh-pages
333332
folder: build
@@ -348,4 +347,4 @@ If you wish to remove these files you must go into the deployment branch directl
348347

349348
This project would not be possible without all of our fantastic [contributors](https://github.com/JamesIves/github-pages-deploy-action/graphs/contributors) and [sponsors](https://github.com/sponsors/JamesIves). If you'd like to support the maintenance and upkeep of this project you can [donate via GitHub Sponsors](https://github.com/sponsors/JamesIves).
350349

351-
<!-- sponsors --><!-- sponsors -->
350+
<!-- sponsors --><a href="https://github.com/MattWillFlood"><img src="https://github.com/MattWillFlood.png" width="50px" alt="" /></a><!-- sponsors -->

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@jamesives/github-pages-deploy-action",
33
"description": "GitHub action for building a project and deploying it to GitHub pages.",
44
"author": "James Ives <iam@jamesiv.es> (https://jamesiv.es)",
5-
"version": "4.1.2",
5+
"version": "4.1.3",
66
"license": "MIT",
77
"main": "lib/lib.js",
88
"types": "lib/lib.d.ts",
@@ -33,25 +33,25 @@
3333
"deployment"
3434
],
3535
"dependencies": {
36-
"@actions/core": "1.2.7",
36+
"@actions/core": "1.3.0",
3737
"@actions/exec": "1.0.4",
38-
"@actions/github": "4.0.0",
38+
"@actions/github": "5.0.0",
3939
"@actions/io": "1.1.0"
4040
},
4141
"devDependencies": {
4242
"@types/jest": "26.0.23",
43-
"@types/node": "15.0.2",
44-
"@typescript-eslint/eslint-plugin": "4.23.0",
45-
"@typescript-eslint/parser": "4.23.0",
46-
"eslint": "7.26.0",
43+
"@types/node": "15.12.0",
44+
"@typescript-eslint/eslint-plugin": "4.26.0",
45+
"@typescript-eslint/parser": "4.26.0",
46+
"eslint": "7.27.0",
4747
"eslint-config-prettier": "8.3.0",
4848
"eslint-plugin-jest": "24.3.6",
4949
"eslint-plugin-prettier": "3.4.0",
5050
"jest": "26.6.3",
51-
"jest-circus": "26.6.3",
52-
"prettier": "2.2.1",
51+
"jest-circus": "27.0.4",
52+
"prettier": "2.3.0",
5353
"rimraf": "3.0.2",
5454
"ts-jest": "26.5.6",
55-
"typescript": "4.2.4"
55+
"typescript": "4.3.2"
5656
}
5757
}

src/execute.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export async function execute(
3030
}
3131

3232
export function stdout(data: Buffer | string): void {
33-
if (output.length < buffer.constants.MAX_STRING_LENGTH) {
34-
output += data.toString().trim()
33+
const dataString = data.toString().trim()
34+
if (output.length + dataString.length < buffer.constants.MAX_STRING_LENGTH) {
35+
output += dataString
3536
}
3637
}

src/ssh.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ export async function configureSSH(action: ActionInterface): Promise<void> {
2626
const agentOutput = execFileSync('ssh-agent').toString().split('\n')
2727

2828
agentOutput.map(line => {
29-
const exportableVariables = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(
30-
line
31-
)
29+
const exportableVariables =
30+
/^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(line)
3231

3332
if (exportableVariables && exportableVariables.length) {
3433
exportVariable(exportableVariables[1], exportableVariables[2])

src/util.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ export const suppressSensitiveInformation = (
7979
return value
8080
}
8181

82-
const orderedByLength = ([action.token, action.repositoryPath].filter(
83-
Boolean
84-
) as string[]).sort((a, b) => b.length - a.length)
82+
const orderedByLength = (
83+
[action.token, action.repositoryPath].filter(Boolean) as string[]
84+
).sort((a, b) => b.length - a.length)
8585

8686
for (const find of orderedByLength) {
8787
value = replaceAll(value, find, '***')

0 commit comments

Comments
 (0)