Compare commits

...

4 Commits

Author SHA1 Message Date
Tonye Jack
2106eb4457 fix: add warning message when unable to list submodules (#1304)
Co-authored-by: GitHub Action <action@github.com>
2023-06-25 17:12:13 +00:00
renovate[bot]
4afe0ab671 chore(deps): update dependency @types/node to v20.3.1 (#1303)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-25 13:59:47 +00:00
renovate[bot]
5768dd7d22 chore(deps): update tj-actions/eslint-changed-files action to v20 (#1301)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-24 18:42:19 +00:00
tj-actions[bot]
648f9c1aaf Upgraded to v37.0.1 (#1300)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2023-06-24 16:10:19 +00:00
7 changed files with 20 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ jobs:
yarn install
- name: Run eslint on changed files
uses: tj-actions/eslint-changed-files@v19
uses: tj-actions/eslint-changed-files@v20
if: github.event_name == 'pull_request'
with:
token: ${{ secrets.PAT_TOKEN }}

View File

@@ -1,5 +1,17 @@
# Changelog
# [37.0.1](https://github.com/tj-actions/changed-files/compare/v37.0.0...v37.0.1) - (2023-06-24)
## <!-- 1 -->🐛 Bug Fixes
- Error using current path to determine the .git dir location ([#1299](https://github.com/tj-actions/changed-files/issues/1299)) ([e5efec4](https://github.com/tj-actions/changed-files/commit/e5efec47f620e0fde64a1ad8f53bbf53d51a8c97)) - (Tonye Jack)
## <!-- 9 -->⬆️ Upgrades
- Upgraded to v37 ([#1298](https://github.com/tj-actions/changed-files/issues/1298))
Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([d6d7cb2](https://github.com/tj-actions/changed-files/commit/d6d7cb291e28bba32464fbbf0d13c7f6c2c75de1)) - (tj-actions[bot])
# [37.0.0](https://github.com/tj-actions/changed-files/compare/v36.4.1...v37.0.0) - (2023-06-23)
## <!-- 0 -->🚀 Features

3
dist/index.js generated vendored
View File

@@ -1821,12 +1821,13 @@ const isRepoShallow = ({ cwd }) => __awaiter(void 0, void 0, void 0, function* (
});
exports.isRepoShallow = isRepoShallow;
const submoduleExists = ({ cwd }) => __awaiter(void 0, void 0, void 0, function* () {
const { stdout, exitCode } = yield exec.getExecOutput('git', ['submodule', 'status'], {
const { stdout, exitCode, stderr } = yield exec.getExecOutput('git', ['submodule', 'status'], {
cwd,
ignoreReturnCode: true,
silent: !core.isDebug()
});
if (exitCode !== 0) {
core.warning(stderr || "Couldn't list submodules");
return false;
}
return stdout.trim() !== '';

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -44,7 +44,7 @@
"@types/jest": "29.5.2",
"@types/lodash": "^4.14.195",
"@types/micromatch": "^4.0.2",
"@types/node": "20.2.1",
"@types/node": "20.3.1",
"@types/uuid": "9.0.2",
"@typescript-eslint/eslint-plugin": "5.60.0",
"@typescript-eslint/parser": "5.60.0",

View File

@@ -209,7 +209,7 @@ export const submoduleExists = async ({
}: {
cwd: string
}): Promise<boolean> => {
const {stdout, exitCode} = await exec.getExecOutput(
const {stdout, exitCode, stderr} = await exec.getExecOutput(
'git',
['submodule', 'status'],
{
@@ -220,6 +220,7 @@ export const submoduleExists = async ({
)
if (exitCode !== 0) {
core.warning(stderr || "Couldn't list submodules")
return false
}

View File

@@ -975,16 +975,11 @@
dependencies:
"@types/braces" "*"
"@types/node@*":
"@types/node@*", "@types/node@20.3.1":
version "20.3.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.3.1.tgz#e8a83f1aa8b649377bb1fb5d7bac5cb90e784dfe"
integrity sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==
"@types/node@20.2.1":
version "20.2.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.1.tgz#de559d4b33be9a808fd43372ccee822c70f39704"
integrity sha512-DqJociPbZP1lbZ5SQPk4oag6W7AyaGMO6gSfRwq3PWl4PXTwJpRQJhDq4W0kzrg3w6tJ1SwlvGZ5uKFHY13LIg==
"@types/prettier@^2.1.5":
version "2.7.3"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.3.tgz#3e51a17e291d01d17d3fc61422015a933af7a08f"