Skip to content

Commit bc50a99

Browse files
authored
Add link to doc for creating and using encyrpted secrets (#123)
1 parent dfd70d4 commit bc50a99

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
4747

4848
# Auth token used to fetch the repository. The token is stored in the local git
4949
# config, which enables your scripts to run authenticated git commands. The
50-
# post-job step removes the token from the git config.
50+
# post-job step removes the token from the git config. [Learn more about creating
51+
# and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
5152
# Default: ${{ github.token }}
5253
token: ''
5354

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ inputs:
1313
description: >
1414
Auth token used to fetch the repository. The token is stored in the local
1515
git config, which enables your scripts to run authenticated git commands.
16-
The post-job step removes the token from the git config.
16+
The post-job step removes the token from the git config. [Learn more about
17+
creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
1718
default: ${{ github.token }}
1819
persist-credentials:
1920
description: 'Whether to persist the token in the git config'

src/misc/generate-docs.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,14 @@ function updateUsage(
6565
let segment: string = description
6666
if (description.length > width) {
6767
segment = description.substr(0, width + 1)
68-
while (!segment.endsWith(' ')) {
68+
while (!segment.endsWith(' ') && segment) {
6969
segment = segment.substr(0, segment.length - 1)
7070
}
71+
72+
// Trimmed too much?
73+
if (segment.length < width * 0.67) {
74+
segment = description
75+
}
7176
} else {
7277
segment = description
7378
}

0 commit comments

Comments
 (0)