mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-08 00:59:04 +00:00
Ignore error when some tag on remote was updated
This commit is contained in:
parent
ad1ae68cd0
commit
208adf42c8
2 changed files with 6 additions and 2 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -3879,7 +3879,9 @@ async function getChangesSinceMergeBase(base, ref, initialFetchDepth) {
|
|||
if (baseRef === undefined) {
|
||||
baseRef = await getFullRef(base);
|
||||
if (baseRef === undefined) {
|
||||
await exec_1.default('git', ['fetch', '--tags', `--depth=1`, 'origin', base, ref]);
|
||||
await exec_1.default('git', ['fetch', '--tags', '--depth=1', 'origin', base, ref], {
|
||||
ignoreReturnCode: true // returns exit code 1 if tags on remote were updated - we can safely ignore it
|
||||
});
|
||||
baseRef = await getFullRef(base);
|
||||
if (baseRef === undefined) {
|
||||
throw new Error(`Could not determine what is ${base} - fetch works but it's not a branch or tag`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue