Skip to content

Commit e333c2a

Browse files
author
Martin Lopes
authored
Merge branch 'main' into patch-1
2 parents e499570 + 7a9f4bf commit e333c2a

72 files changed

Lines changed: 889 additions & 97 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: CodeQL analysis
22

33
on:
44
push:
5+
branches: main
6+
pull_request:
7+
branches: main
58
paths:
69
- '**/*.js'
710
- '.github/workflows/codeql.yml'

content/actions/creating-actions/creating-a-javascript-action.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ git tag -a -m "My first action release" v1
176176
git push --follow-tags
177177
```
178178

179-
As an alternative to checking in your `node_modules` directory you can use a tool called [`@vercel/ncc`](https://github.com/vercel/ncc) to compile your code and modules into one file used for distribution.
179+
Checking in your `node_modules` directory can cause problems. As an alternative, you can use a tool called [`@vercel/ncc`](https://github.com/vercel/ncc) to compile your code and modules into one file used for distribution.
180180

181181
1. Install `vercel/ncc` by running this command in your terminal.
182182
`npm i -g @vercel/ncc`

content/actions/guides/building-and-testing-java-with-maven.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
java-version: 1.8
5555
- name: Build with Maven
56-
run: mvn -B package --file pom.xml
56+
run: mvn --batch-mode --update-snapshots verify
5757
```
5858
{% endraw %}
5959
@@ -85,7 +85,7 @@ steps:
8585
with:
8686
java-version: 1.8
8787
- name: Run the Maven verify phase
88-
run: mvn -B verify --file pom-ci.xml
88+
run: mvn --batch-mode --update-snapshots verify
8989
```
9090
{% endraw %}
9191

@@ -108,7 +108,7 @@ steps:
108108
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
109109
restore-keys: ${{ runner.os }}-m2
110110
- name: Build with Maven
111-
run: mvn -B package --file pom.xml
111+
run: mvn --batch-mode --update-snapshots verify
112112
```
113113
{% endraw %}
114114

@@ -125,7 +125,7 @@ Maven will usually create output files like JARs, EARs, or WARs in the `target`
125125
steps:
126126
- uses: actions/checkout@v2
127127
- uses: actions/setup-java@v1
128-
- run: mvn -B package --file pom.xml
128+
- run: mvn --batch-mode --update-snapshots verify
129129
- run: mkdir staging && cp target/*.jar staging
130130
- uses: actions/upload-artifact@v2
131131
with:

content/actions/guides/publishing-java-packages-with-maven.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
server-username: MAVEN_USERNAME
8585
server-password: MAVEN_PASSWORD
8686
- name: Publish package
87-
run: mvn -B deploy
87+
run: mvn --batch-mode deploy
8888
env:
8989
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
9090
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
@@ -143,7 +143,7 @@ jobs:
143143
with:
144144
java-version: 1.8
145145
- name: Publish package
146-
run: mvn -B deploy
146+
run: mvn --batch-mode deploy
147147
env:
148148
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149149
```
@@ -182,7 +182,7 @@ jobs:
182182
server-username: MAVEN_USERNAME
183183
server-password: MAVEN_PASSWORD
184184
- name: Publish to the Maven Central Repository
185-
run: mvn -B deploy
185+
run: mvn --batch-mode deploy
186186
env:
187187
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
188188
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
@@ -191,7 +191,7 @@ jobs:
191191
with:
192192
java-version: 1.8
193193
- name: Publish to GitHub Packages
194-
run: mvn -B deploy
194+
run: mvn --batch-mode deploy
195195
env:
196196
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197197
```

content/actions/reference/events-that-trigger-workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139

140140
| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
141141
| ------------------ | ------------ | ------------ | ------------------|
142-
| [repository_dispatch](/webhooks/event-payloads/#repository_dispatch) | n/a | Last commit on the `GITHUB_REF` branch | Branch that received dispatch |
142+
| [repository_dispatch](/webhooks/event-payloads/#repository_dispatch) | n/a | Last commit on default branch | Default branch |
143143

144144
{% data reusables.github-actions.branch-requirement %}
145145

content/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ versions:
88

99
### About billing for {% data variables.product.prodname_actions %}
1010

11-
{% data reusables.github-actions.actions-billing %} {% data reusables.github-actions.actions-spending-limit %}
11+
{% data reusables.github-actions.actions-billing %}
12+
13+
{% data reusables.github-actions.actions-spending-limit-brief %} For more information, see "[About spending limits](#about-spending-limits)."
1214

1315
Minutes reset every month, while storage usage does not.
1416

@@ -69,8 +71,8 @@ Your {% data variables.product.prodname_actions %} usage shares your account's e
6971

7072
### About spending limits
7173

72-
By default, your account will have a spending limit of $0 for {% data variables.product.prodname_actions %} usage. To enable using minutes and storage for private repositories beyond the amounts included with your account, you can increase the spending limit or allow unlimited spending. For more information, see "[Managing your spending limit for {% data variables.product.prodname_actions %}](/github/setting-up-and-managing-billing-and-payments-on-github/managing-your-spending-limit-for-github-actions)."
74+
{% data reusables.github-actions.actions-spending-limit-detailed %}
7375

74-
{% data reusables.github-actions.spending-limit-enterprise-account %}
76+
For information on managing and changing your account's spending limit, see "[Managing your spending limit for {% data variables.product.prodname_actions %}](/github/setting-up-and-managing-billing-and-payments-on-github/managing-your-spending-limit-for-github-actions)."
7577

7678
{% data reusables.dotcom_billing.actions-packages-unpaid-account %}

content/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-packages.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ versions:
1010

1111
{% data reusables.package_registry.packages-billing %}
1212

13+
{% data reusables.package_registry.packages-spending-limit-brief %} For more information, see "[About spending limits](#about-spending-limits)."
14+
1315
{% data reusables.package_registry.container-registry-beta-billing-note %}
1416

1517
Data transfer resets every month, while storage usage does not.
@@ -50,8 +52,8 @@ Your {% data variables.product.prodname_registry %} usage shares your account's
5052

5153
### About spending limits
5254

53-
By default, your account will have a spending limit of $0 for {% data variables.product.prodname_registry %} usage. To enable storage and data transfer for private packages beyond the amounts included with your account, you can increase the spending limit or allow unlimited spending. For more information, see "[Managing your spending limit for {% data variables.product.prodname_registry %}](/github/setting-up-and-managing-billing-and-payments-on-github/managing-your-spending-limit-for-github-packages)."
55+
{% data reusables.package_registry.packages-spending-limit-detailed %}
5456

55-
{% data reusables.package_registry.spending-limit-enterprise-account %}
57+
For information on managing and changing your account's spending limit, see "[Managing your spending limit for {% data variables.product.prodname_registry %}](/github/setting-up-and-managing-billing-and-payments-on-github/managing-your-spending-limit-for-github-packages)."
5658

5759
{% data reusables.dotcom_billing.actions-packages-unpaid-account %}

content/github/setting-up-and-managing-billing-and-payments-on-github/managing-your-spending-limit-for-github-actions.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ versions:
88

99
### About spending limits for {% data variables.product.prodname_actions %}
1010

11-
{% data reusables.github-actions.actions-billing %} {% data reusables.github-actions.actions-spending-limit %}
11+
{% data reusables.github-actions.actions-billing %}
1212

13-
You can set a higher spending limit or, for some accounts, allow unlimited spending. If you pay for your organization or enterprise account by invoice, you can prepay for overages to set a higher spending limit. The spending limit applies to your combined overages for {% data variables.product.prodname_actions %} and {% data variables.product.prodname_registry %}. For more information about pricing for {% data variables.product.prodname_actions %} usage, see "[About billing for {% data variables.product.prodname_actions %}](/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions)."
13+
{% data reusables.github-actions.actions-spending-limit-brief %}
1414

15-
As soon as you set a spending limit above $0, you will be responsible for any overages that occurred in the past. For example, if your organization uses {% data variables.product.prodname_team %}, does not allow overages, and creates workflow artifacts that increase your storage usage for the month from 1.9GB to 2.1GB, you will use slightly more storage than the 2GB your product includes.
15+
{% data reusables.actions.actions-packages-set-spending-limit %} For more information about pricing for {% data variables.product.prodname_actions %} usage, see "[About billing for {% data variables.product.prodname_actions %}](/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions)."
1616

17-
Because you have not enabled overages, your next attempt to publish a version of the package will fail. You will not receive a bill for the 0.1GB overage that month. However, if you enable overages in a future month, your first bill will include the 0.1GB of overage from the past in addition to any overages for the current billing cycle.
17+
As soon as you set a spending limit other than $0, you will be responsible for any existing overages in the current billing period. For example, if your organization uses {% data variables.product.prodname_team %}, does not allow overages, and creates workflow artifacts that increase your storage usage for the month from 1.9GB to 2.1GB, you will use slightly more storage than the 2GB your product includes.
18+
19+
Because you have not enabled overages, your next attempt to create a workflow artifact will fail. You will not receive a bill for the 0.1GB overage that month. However, if you enable overages, your first bill will include the 0.1GB of existing overage for the current billing cycle, as well as any additional overages you accrue.
1820

1921
### Managing the spending limit for {% data variables.product.prodname_actions %} for your user account
2022

@@ -30,8 +32,6 @@ Anyone can manage the spending limit for {% data variables.product.prodname_acti
3032

3133
Organizations owners and billing managers can manage the spending limit for {% data variables.product.prodname_actions %} for an organization.
3234

33-
If you pay for your organization account by invoice, you cannot manage the spending limit for your enterprise account on {% data variables.product.product_name %}. If you want to allow repositories owned by your organization to use {% data variables.product.prodname_actions %} beyond the storage or data transfer included for each repository, you can prepay for overages. Because overages must prepaid, you cannot enable unlimited spending on accounts paid by invoice. Your spending limit will be 150% of the amount you prepaid. If you have any questions, [contact our account management team](https://enterprise.github.com/contact).
34-
3535
{% data reusables.profile.access_profile %}
3636
{% data reusables.profile.access_org %}
3737
{% data reusables.organizations.org_settings %}
@@ -44,8 +44,6 @@ If you pay for your organization account by invoice, you cannot manage the spend
4444

4545
Enterprise owners and billing managers can manage the spending limit for {% data variables.product.prodname_actions %} for an enterprise account.
4646

47-
{% data reusables.github-actions.spending-limit-enterprise-account %}
48-
4947
{% data reusables.enterprise-accounts.access-enterprise %}
5048
{% data reusables.enterprise-accounts.settings-tab %}
5149
{% data reusables.enterprise-accounts.billing-tab %}

content/github/setting-up-and-managing-billing-and-payments-on-github/managing-your-spending-limit-for-github-packages.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ versions:
1010

1111
{% data reusables.package_registry.packages-billing %}
1212

13-
You can set a higher spending limit or, for some accounts, allow unlimited spending. If you pay for your organization or enterprise account by invoice, you can prepay for overages to set a higher spending limit. The spending limit applies to your combined overages for {% data variables.product.prodname_registry %} and {% data variables.product.prodname_actions %}. For more information about pricing for {% data variables.product.prodname_registry %} usage, see "[About billing for {% data variables.product.prodname_registry %}](/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-packages)."
13+
{% data reusables.package_registry.packages-spending-limit-brief %}
1414

15-
As soon as you set a spending limit above $0, you will be responsible for any overages that occurred in the past. For example, if your organization uses {% data variables.product.prodname_team %}, does not allow overages, and publishes a new version of a private package that increases your storage usage for the month from 1.9GB to 2.1GB, publishing the version will use slightly more than the 2GB your product includes.
15+
{% data reusables.actions.actions-packages-set-spending-limit %} For more information about pricing for {% data variables.product.prodname_registry %} usage, see "[About billing for {% data variables.product.prodname_registry %}](/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-packages)."
1616

17-
Because you have not enabled overages, your next attempt to publish a version of the package will fail. You will not receive a bill for the 0.1GB overage that month. However, if you enable overages in a future month, your first bill will include the 0.1GB of overage from the past in addition to any overages for the current billing cycle.
17+
As soon as you set a spending limit other than $0, you will be responsible for any existing overages in the current billing period. For example, if your organization uses {% data variables.product.prodname_team %}, does not allow overages, and publishes a new version of a private package that increases your storage usage for the month from 1.9GB to 2.1GB, publishing the version will use slightly more than the 2GB your product includes.
18+
19+
Because you have not enabled overages, your next attempt to publish a version of the package will fail. You will not receive a bill for the 0.1GB overage that month. However, if you enable overages, your first bill will include the 0.1GB of existing overage for the current billing cycle, as well as any additional overages you accrue.
1820

1921
### Managing the spending limit for {% data variables.product.prodname_registry %} for your user account
2022

@@ -30,8 +32,6 @@ Anyone can manage the spending limit for {% data variables.product.prodname_regi
3032

3133
Organizations owners and billing managers can manage the spending limit for {% data variables.product.prodname_registry %} for an organization.
3234

33-
If you pay for your organization account by invoice, you cannot manage the spending limit for your enterprise account on {% data variables.product.product_name %}. If you want to allow repositories owned by your organization to use {% data variables.product.prodname_registry %} beyond the storage or data transfer included for each repository, you can prepay for overages. Because overages must prepaid, you cannot enable unlimited spending on accounts paid by invoice. Your spending limit will be 150% of the amount you prepaid. If you have any questions, [contact our account management team](https://enterprise.github.com/contact).
34-
3535
{% data reusables.profile.access_profile %}
3636
{% data reusables.profile.access_org %}
3737
{% data reusables.organizations.org_settings %}
@@ -44,8 +44,6 @@ If you pay for your organization account by invoice, you cannot manage the spend
4444

4545
Enterprise owners and billing managers can manage the spending limit for {% data variables.product.prodname_registry %} for an enterprise account.
4646

47-
{% data reusables.package_registry.spending-limit-enterprise-account %}
48-
4947
{% data reusables.enterprise-accounts.access-enterprise %}
5048
{% data reusables.enterprise-accounts.settings-tab %}
5149
{% data reusables.enterprise-accounts.billing-tab %}

content/github/setting-up-and-managing-your-github-profile/viewing-contributions-on-your-profile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ versions:
1111
github-ae: '*'
1212
---
1313

14-
{% if currentVersion == "free-pro-team@latest" or enterpriseServerVersions contains currentVersion %}Your contribution graph shows activity from public repositories. {% endif %}You can choose to show activity from {% if currentVersion == "free-pro-team@latest" or enterpriseServerVersions contains currentVersion %}both public and{% endif %}private repositories, with specific details of your activity in private repositories anonymized. For more information, see "[Publicizing or hiding your private contributions on your profile](/articles/publicizing-or-hiding-your-private-contributions-on-your-profile)."
14+
{% if currentVersion == "free-pro-team@latest" or enterpriseServerVersions contains currentVersion %}Your contribution graph shows activity from public repositories. {% endif %}You can choose to show activity from {% if currentVersion == "free-pro-team@latest" or enterpriseServerVersions contains currentVersion %}both public and {% endif %}private repositories, with specific details of your activity in private repositories anonymized. For more information, see "[Publicizing or hiding your private contributions on your profile](/articles/publicizing-or-hiding-your-private-contributions-on-your-profile)."
1515

1616
{% note %}
1717

0 commit comments

Comments
 (0)