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
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -76,37 +76,37 @@ jobs:
76
76
# Common names for this branch include main and master.
77
77
#
78
78
# Default: main
79
-
main-branch-name: ""
79
+
main-branch-name: ''
80
80
81
81
# Applies the derived SHAs for base and head as NX_BASE and NX_HEAD environment variables within the current Job.
82
82
#
83
83
# Default: true
84
-
set-environment-variables-for-job: ""
84
+
set-environment-variables-for-job: ''
85
85
86
86
# By default, if no successful workflow run 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.
87
87
#
88
88
# Default: false
89
-
error-on-no-successful-workflow: ""
89
+
error-on-no-successful-workflow: ''
90
90
91
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
92
#
93
93
# Default: ""
94
-
fallback-sha: ""
94
+
fallback-sha: ''
95
95
96
96
# The type of event to check for the last successful commit corresponding to that workflow-id, e.g. push, pull_request, release etc.
97
97
#
98
98
# Default: push
99
-
last-successful-event: ""
99
+
last-successful-event: ''
100
100
101
101
# 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
102
#
103
103
# Default: .
104
-
working-directory: ""
104
+
working-directory: ''
105
105
106
106
# The ID of the github action workflow to check for successful run or the name of the file name containing the workflow.
107
107
# E.g. 'ci.yml'. If not provided, current workflow id will be used
Copy file name to clipboardExpand all lines: action.yml
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,28 @@
1
-
name: "Nx set SHAs"
2
-
description: "Derives SHAs for base and head for use in nx affected commands, optionally setting them as env variables for the current job"
1
+
name: 'Nx set SHAs'
2
+
description: 'Derives SHAs for base and head for use in nx affected commands, optionally setting them as env variables for the current job'
3
3
4
4
inputs:
5
5
main-branch-name:
6
-
description: "The name of the main branch in your repo, used as the target of PRs. E.g. main, master etc"
7
-
default: "main"
6
+
description: 'The name of the main branch in your repo, used as the target of PRs. E.g. main, master etc'
7
+
default: 'main'
8
8
set-environment-variables-for-job:
9
-
description: "Applies the derived SHAs for base and head as NX_BASE and NX_HEAD environment variables within the current Job"
10
-
default: "true"
9
+
description: 'Applies the derived SHAs for base and head as NX_BASE and NX_HEAD environment variables within the current Job'
10
+
default: 'true'
11
11
error-on-no-successful-workflow:
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
-
default: "false"
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
+
default: 'false'
14
14
fallback-sha:
15
-
description: "Fallback SHA to use if no successful workflow run is found."
15
+
description: 'Fallback SHA to use if no successful workflow run is found.'
16
16
required: false
17
-
default: ""
17
+
default: ''
18
18
last-successful-event:
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"
20
-
default: "push"
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'
20
+
default: 'push'
21
21
working-directory:
22
-
description: "The directory where your repository is located"
23
-
default: "."
22
+
description: 'The directory where your repository is located'
23
+
default: '.'
24
24
workflow-id:
25
-
description: "The ID of the workflow to track or name of the file name. E.g. ci.yml. Defaults to current workflow"
25
+
description: 'The ID of the workflow to track or name of the file name. E.g. ci.yml. Defaults to current 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`);
0 commit comments