File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -211,9 +211,7 @@ Learn more about ["personal access tokens" here](https://help.github.com/article
211
211
- Example: ` ng deploy --message="What could possibly go wrong?" `
212
212
213
213
The commit message ** must be wrapped in quotes** if there are any spaces in the text.
214
- Some handy additional text is always added,
215
- if the environment variable ` TRAVIS ` exists (for Travis CI) or
216
- if the environment variable ` CIRCLECI ` exists (for Circle CI).
214
+ Some additional text is always added to the message, if the command runs on Travis CI, Circle CI or GitHub Actions.
217
215
218
216
#### --branch <a name =" branch " ></a >
219
217
Original file line number Diff line number Diff line change @@ -108,6 +108,16 @@ export async function prepareOptions(
108
108
process . env . CIRCLE_BUILD_URL ;
109
109
}
110
110
111
+ if ( process . env . GITHUB_ACTIONS ) {
112
+ options . message +=
113
+ '\n\n' +
114
+ 'Triggered by commit: https://github.com/' +
115
+ process . env . GITHUB_REPOSITORY +
116
+ '/' +
117
+ '/commit/' +
118
+ process . env . GITHUB_SHA ;
119
+ }
120
+
111
121
// NEW in 0.6.2: always discover remote URL (if not set)
112
122
// this allows us to inject tokens from environment even if `--repo` is not set manually
113
123
if ( ! options . repo ) {
You can’t perform that action at this time.
0 commit comments