Skip to content

Commit 3aed23b

Browse files
authored
Merge branch 'main' into make-developer-redirects-static
2 parents 2846a16 + 5d7ae36 commit 3aed23b

59 files changed

Lines changed: 12348 additions & 3264 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/allowed-actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = [
3333
'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88',
3434
'repo-sync/pull-request@33777245b1aace1a58c87a29c90321aa7a74bd7d',
3535
'someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd',
36-
'tjenkinson/gh-action-auto-merge-dependency-updates@cee2ac0',
36+
'tjenkinson/gh-action-auto-merge-dependency-updates@4d7756c04d9d999c5968697a621b81c47f533d61',
3737
'EndBug/add-and-commit@9358097a71ad9fb9e2f9624c6098c89193d83575',
3838
'dorny/paths-filter@eb75a1edc117d3756a18ef89958ee59f9500ba58'
3939
]

.github/workflows/automerge-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: tjenkinson/gh-action-auto-merge-dependency-updates@cee2ac0
20+
- uses: tjenkinson/gh-action-auto-merge-dependency-updates@4d7756c04d9d999c5968697a621b81c47f533d61
2121
with:
2222
repo-token: ${{ secrets.GITHUB_TOKEN }}
2323
allowed-actors: dependabot[bot]
28 KB
Loading
29.3 KB
Loading
25.3 KB
Loading
48.5 KB
Loading

content/actions/creating-actions/about-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ steps:
122122
123123
#### Using a commit's SHA for release management
124124
125-
Each Git commit receives a calculated SHA value, which is unique and immutable. Your action's users might prefer to rely on a commit's SHA value, as this approach can be more reliable than specifying a tag, which could be deleted or moved. However, this means that users will not receive further updates made to the action. Using a commit's full SHA value instead of the abbreviated value can help prevent people from using a malicious commit that uses the same abbreviation.
125+
Each Git commit receives a calculated SHA value, which is unique and immutable. Your action's users might prefer to rely on a commit's SHA value, as this approach can be more reliable than specifying a tag, which could be deleted or moved. However, this means that users will not receive further updates made to the action. {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" %}You must use a commit's full SHA value, and not an abbreviated value.{% else %}Using a commit's full SHA value instead of the abbreviated value can help prevent people from using a malicious commit that uses the same abbreviation.{% endif %}
126126
127127
```yaml
128128
steps:

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,18 @@ steps:
105105
- name: Cache Gradle packages
106106
uses: actions/cache@v2
107107
with:
108-
path: ~/.gradle/caches
109-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
110-
restore-keys: ${{ runner.os }}-gradle
108+
path: |
109+
~/.gradle/caches
110+
~/.gradle/wrapper
111+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
112+
restore-keys: |
113+
${{ runner.os }}-gradle-
111114
- name: Build with Gradle
112115
run: ./gradlew build
113116
```
114117
{% endraw %}
115118

116-
This workflow will save the contents of your local Gradle package cache, located in the `.gradle/caches` directory of the runner's home directory. The cache key will be the hashed contents of the gradle build files, so changes to them will invalidate the cache.
119+
This workflow will save the contents of your local Gradle package cache, located in the `.gradle/caches` and `.gradle/wrapper` directories of the runner's home directory. The cache key will be the hashed contents of the gradle build files (including the Gradle wrapper properties file), so any changes to them will invalidate the cache.
117120

118121
### Packaging workflow data as artifacts
119122

content/actions/guides/building-and-testing-net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup .NET Core SDK ${{ matrix.dotnet }}
4545
uses: actions/setup-dotnet@v1.6.0
4646
with:
47-
dotnet-version: {{ matrix.dotnet-version }}
47+
dotnet-version: ${{ matrix.dotnet-version }}
4848
- name: Install dependencies
4949
run: dotnet restore
5050
- name: Build

content/actions/learn-github-actions/finding-and-customizing-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ steps:
7171
7272
#### Using SHAs
7373
74-
If you need more reliable versioning, you should use the SHA value associated with the version of the action. SHAs are immutable and therefore more reliable than tags or branches. However this approach means you will not automatically receive updates for an action, including important bug fixes and security updates. This example targets an action's SHA:
74+
If you need more reliable versioning, you should use the SHA value associated with the version of the action. SHAs are immutable and therefore more reliable than tags or branches. However this approach means you will not automatically receive updates for an action, including important bug fixes and security updates. {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" %}You must use a commit's full SHA value, and not an abbreviated value. {% endif %}This example targets an action's SHA:
7575
7676
```yaml
7777
steps:

0 commit comments

Comments
 (0)