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
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,12 +72,22 @@ jobs:
72
72
```yaml
73
73
- uses: nrwl/nx-set-shas@v4
74
74
with:
75
+
# The GitHub token used to perform git operations
76
+
#
77
+
# Default: ${ github.token }
78
+
gh-token: ''
79
+
75
80
# The "main" branch of your repository (the base branch which you target with PRs).
76
81
# Common names for this branch include main and master.
77
82
#
78
-
# Default: main
83
+
# Default: "main"
79
84
main-branch-name: ''
80
85
86
+
# The name of the remote to fetch from
87
+
#
88
+
# Default: "origin"
89
+
remote: ''
90
+
81
91
# Applies the derived SHAs for base and head as NX_BASE and NX_HEAD environment variables within the current Job.
82
92
#
83
93
# Default: true
@@ -89,18 +99,16 @@ jobs:
89
99
error-on-no-successful-workflow: ''
90
100
91
101
# 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
102
fallback-sha: ''
95
103
96
104
# The type of event to check for the last successful commit corresponding to that workflow-id, e.g. push, pull_request, release etc.
97
105
#
98
-
# Default: push
106
+
# Default: "push"
99
107
last-successful-event: ''
100
108
101
109
# The path where your repository is. This is only required for cases where the repository code is checked out or moved to a specific path.
102
110
#
103
-
# Default: .
111
+
# Default: "."
104
112
working-directory: ''
105
113
106
114
# The ID of the github action workflow to check for successful run or the name of the file name containing the workflow.
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`);
29992
+
process.stdout.write(`WARNING: Unable to find a successful workflow run on '${remote}/${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`);
`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`,
83
+
`WARNING: Unable to find a successful workflow run on '${remote}/${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