You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,11 @@ jobs:
88
88
# Default: false
89
89
error-on-no-successful-workflow: ""
90
90
91
+
# Fallback SHA to use if no successful workflow run is found. This can be useful in scenarios where you need a specific commit as a reference for comparison, especially in newly set up repositories or those with sparse workflow runs.
92
+
#
93
+
# Default: ""
94
+
fallback-sha: ""
95
+
91
96
# The type of event to check for the last successful commit corresponding to that workflow-id, e.g. push, pull_request, release etc.
Copy file name to clipboardExpand all lines: action.yml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,10 @@ inputs:
11
11
error-on-no-successful-workflow:
12
12
description: "By default, if no successful workflow is found on the main branch to determine the SHA, we will log a warning and use HEAD~1. Enable this option to error and exit instead."
13
13
default: "false"
14
+
fallback-sha:
15
+
description: "Fallback SHA to use if no successful workflow run is found."
16
+
required: false
17
+
default: ""
14
18
last-successful-event:
15
19
description: "The type of event to check for the last successful commit corresponding to that workflow-id, e.g. push, pull_request, release etc"
process.stdout.write(`WARNING: Unable to find a successful workflow run on 'origin/${mainBranchName}', or the latest successful workflow was connected to a commit which no longer exists on that branch (e.g. if that branch was rebased)\n`);
37916
-
process.stdout.write(`We are therefore defaulting to use HEAD~1 on 'origin/${mainBranchName}'\n`);
37917
-
process.stdout.write("\n");
37918
-
process.stdout.write(`NOTE: You can instead make this a hard error by setting 'error-on-no-successful-workflow' on the action in your workflow.\n`);
`WARNING: Unable to find a successful workflow run on 'origin/${mainBranchName}', or the latest successful workflow was connected to a commit which no longer exists on that branch (e.g. if that branch was rebased)\n`
82
-
);
83
-
process.stdout.write(
84
-
`We are therefore defaulting to use HEAD~1 on 'origin/${mainBranchName}'\n`
85
-
);
86
80
process.stdout.write("\n");
87
81
process.stdout.write(
88
-
`NOTE: You can instead make this a hard error by setting 'error-on-no-successful-workflow' on the action in your workflow.\n`
82
+
`WARNING: Unable to find a successful workflow run on 'origin/${mainBranchName}', or the latest successful workflow was connected to a commit which no longer exists on that branch (e.g. if that branch was rebased)\n`,
0 commit comments