Skip to content

Commit 899bb20

Browse files
authored
Remove deprecated content (#54476)
1 parent ec51e3b commit 899bb20

File tree

91 files changed

+127
-336
lines changed

Some content is hidden

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

91 files changed

+127
-336
lines changed

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/managing-accessibility-settings.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ type: how_to
1616

1717
To create an experience on {% data variables.product.github %} that fits your needs, you can customize the user interface. Accessibility settings can be essential for people with disabilities, but can be useful to anyone. For example, customization of keyboard shortcuts is essential to people who navigate using voice control, but can be useful to anyone when a keyboard shortcut for {% data variables.product.github %} clashes with another application shortcut.
1818

19-
You can decide whether you want to use some or all keyboard shortcuts, and control the display of animated images{% ifversion link-underlines %} and how links are displayed{% endif %}.
20-
21-
{% ifversion link-underlines %}
19+
You can decide whether you want to use some or all keyboard shortcuts, and control the display of animated images and how links are displayed.
2220

2321
## Managing the appearance of links
2422

@@ -32,8 +30,6 @@ You can control whether links in text blocks are underlined and therefore more d
3230
* To disable underlines on links in text blocks, under "Link underlines", select **Hide link underlines**.
3331
* To disable hovercards for previewing link content, deselect **Hovercards**.
3432

35-
{% endif %}
36-
3733
## Managing keyboard shortcuts
3834

3935
You can perform actions across the {% data variables.product.github %} website by using your keyboard alone. Keyboard shortcuts can be useful to save time, but can be activated accidentally or interfere with assistive technology.

content/actions/managing-workflow-runs-and-deployments/managing-deployments/managing-environments-for-deployment.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Third-party systems can be observability systems, change management systems, cod
5151

5252
Use required reviewers to require a specific person or team to approve workflow jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
5353

54-
{% ifversion deployments-prevent-self-approval %}You also have the option to prevent self-reviews for deployments to protected environments. If you enable this setting, users who initiate a deployment cannot approve the deployment job, even if they are a required reviewer. This ensures that deployments to protected environments are always reviewed by more than one person.{% endif %}
54+
You also have the option to prevent self-reviews for deployments to protected environments. If you enable this setting, users who initiate a deployment cannot approve the deployment job, even if they are a required reviewer. This ensures that deployments to protected environments are always reviewed by more than one person.
5555

5656
For more information on reviewing jobs that reference an environment with required reviewers, see [AUTOTITLE](/actions/managing-workflow-runs/reviewing-deployments).
5757

@@ -82,12 +82,11 @@ Use deployment branches{% ifversion deployment-protections-tag-patterns %} and t
8282
{%- else %}
8383
* **All branches:** All branches in the repository can deploy to the environment.
8484
{%- endif %}
85-
* **Protected branches{% ifversion deployment-protections-tag-patterns %} only{% endif %}:** Only branches with branch protection rules enabled can deploy to the environment. If no branch protection rules are defined for any branch in the repository, then all branches can deploy. For more information about branch protection rules, see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches).{% ifversion actions-protected-branches-restrictions %}
85+
* **Protected branches{% ifversion deployment-protections-tag-patterns %} only{% endif %}:** Only branches with branch protection rules enabled can deploy to the environment. If no branch protection rules are defined for any branch in the repository, then all branches can deploy. For more information about branch protection rules, see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches).
8686

8787
> [!NOTE]
8888
> Deployment workflow runs triggered by tags with the same name as a protected branch and forks with branches that match the protected branch name cannot deploy to the environment.
8989
90-
{% endif %}
9190
* **Selected branches{% ifversion deployment-protections-tag-patterns %} and tags{% endif %}:** Only branches{% ifversion deployment-protections-tag-patterns %} and tags{% endif %} that match your specified name patterns can deploy to the environment.
9291

9392
If you specify `releases/*` as a deployment branch{% ifversion deployment-protections-tag-patterns %} or tag{% endif %} rule, only a branch{% ifversion deployment-protections-tag-patterns %} or tag{% endif %} whose name begins with `releases/` can deploy to the environment. (Wildcard characters will not match `/`. To match branches{% ifversion deployment-protections-tag-patterns %} or tags{% endif %} that begin with `release/` and contain an additional single slash, use `release/*/*`.) If you add `main` as a branch rule, a branch named `main` can also deploy to the environment. For more information about syntax options for deployment branches, see the [Ruby `File.fnmatch` documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).
@@ -180,7 +179,7 @@ Variables stored in an environment are only available to workflow jobs that refe
180179
1. Optionally, specify people or teams that must approve workflow jobs that use this environment. For more information, see [Required reviewers](#required-reviewers).
181180
1. Select **Required reviewers**.
182181
1. Enter up to 6 people or teams. Only one of the required reviewers needs to approve the job for it to proceed.
183-
{% ifversion deployments-prevent-self-approval %}1. Optionally, to prevent users from approving workflows runs that they triggered, select **Prevent self-review**.{% endif %}
182+
1. Optionally, to prevent users from approving workflows runs that they triggered, select **Prevent self-review**.
184183
1. Click **Save protection rules**.
185184
1. Optionally, specify the amount of time to wait before allowing workflow jobs that use this environment to proceed. For more information, see [Wait timer](#wait-timer).
186185
1. Select **Wait timer**.

content/actions/managing-workflow-runs-and-deployments/managing-deployments/reviewing-deployments.md

-4
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,9 @@ For more information about environments and required approvals, see [AUTOTITLE](
2727
* To approve the job, click **Approve and deploy**. Once a job is approved (and any other deployment protection rules have passed), the job will proceed. At this point, the job can access any secrets stored in the environment.
2828
* To reject the job, click **Reject**. If a job is rejected, the workflow will fail.
2929

30-
{% ifversion deployments-prevent-self-approval %}
31-
3230
> [!NOTE]
3331
> If the targeted environment is configured to prevent self-approvals for deployments, you will not be able to approve a deployment from a workflow run you initiated. For more information, see [AUTOTITLE](/actions/deployment/targeting-different-environments/managing-environments-for-deployment#required-reviewers).
3432
35-
{% endif %}
36-
3733
## Bypassing deployment protection rules
3834

3935
If you have configured deployment protection rules that control whether software can be deployed to an environment, you can bypass these rules and force all pending jobs referencing the environment to proceed.

content/actions/managing-workflow-runs-and-deployments/managing-deployments/viewing-deployment-history.md

-15
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ redirect_from:
1313
- /actions/deployment/viewing-deployment-history
1414
- /actions/deployment/managing-your-deployments/viewing-deployment-history
1515
---
16-
{% ifversion actions-deployment-history-beta %}
1716

1817
## About deployment history
1918

@@ -49,17 +48,3 @@ By default, the deployments page shows currently active deployments from select
4948
1. Depending on the qualifier you chose, fill out information in the "Operator" and "Value" columns.
5049
1. Optionally, click **{% octicon "plus" aria-hidden="true" %} Add a filter** to add another filter.
5150
1. Click **Apply**.{% endif %}
52-
53-
{% else %}
54-
55-
{% data reusables.actions.about-deployment-with-github-actions %}
56-
57-
To view current and past deployments, click **Environments** in the sidebar of the home page of your repository.
58-
59-
The deployments page displays the last active deployment of each environment for your repository. If the deployment includes an environment URL, a **View deployment** button that links to the URL is shown next to the deployment.
60-
61-
The activity log shows the deployment history for your environments. By default, only the most recent deployment for an environment has an `Active` status; all previously active deployments have an `Inactive` status. For more information on automatic inactivation of deployments, see [AUTOTITLE](/rest/deployments#inactive-deployments).
62-
63-
You can also use the REST API to get information about deployments. For more information, see [AUTOTITLE](/rest/repos#deployments).
64-
65-
{% endif %}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Once you complete this project, you should understand how to build your own Java
3636

3737
Before you begin, you'll need to download Node.js and create a public {% data variables.product.prodname_dotcom %} repository.
3838

39-
1. Download and install Node.js {% ifversion actions-node20-support %}20.x{% else %}16.x{% endif %}, which includes npm.
39+
1. Download and install Node.js 20.x, which includes npm.
4040

4141
https://nodejs.org/en/download/
4242
1. Create a new public repository on {% data variables.product.github %} and call it "hello-world-javascript-action". For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/creating-a-new-repository).
@@ -71,7 +71,7 @@ outputs:
7171
time: # id of output
7272
description: 'The time we greeted you'
7373
runs:
74-
using: {% ifversion actions-node20-support %}'node20'{% else %}'node16'{% endif %}
74+
using: 'node20'
7575
main: 'index.js'
7676
```
7777

content/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -150,19 +150,19 @@ For more information on how to use context syntax, see [AUTOTITLE](/actions/lear
150150

151151
**Required** Configures the path to the action's code and the runtime used to execute the code.
152152

153-
### Example: Using Node.js {% ifversion actions-node20-support %}v20{% else %}v16{% endif %}
153+
### Example: Using Node.js v20
154154

155155
```yaml
156156
runs:
157-
using: {% ifversion actions-node20-support %}'node20'{% else %}'node16'{% endif %}
157+
using: 'node20'
158158
main: 'main.js'
159159
```
160160

161161
### `runs.using` for JavaScript actions
162162

163163
**Required** The runtime used to execute the code specified in [`main`](#runsmain).
164164

165-
* Use {% ifversion actions-node20-support %}`node20` for Node.js v20{% else %}`node16` for Node.js v16{% endif %}.
165+
* Use `node20` for Node.js v20.
166166

167167
### `runs.main`
168168

@@ -176,7 +176,7 @@ In this example, the `pre:` action runs a script called `setup.js`:
176176

177177
```yaml
178178
runs:
179-
using: {% ifversion actions-node20-support %}'node20'{% else %}'node16'{% endif %}
179+
using: 'node20'
180180
pre: 'setup.js'
181181
main: 'index.js'
182182
post: 'cleanup.js'
@@ -203,7 +203,7 @@ In this example, the `post:` action runs a script called `cleanup.js`:
203203

204204
```yaml
205205
runs:
206-
using: {% ifversion actions-node20-support %}'node20'{% else %}'node16'{% endif %}
206+
using: 'node20'
207207
main: 'index.js'
208208
post: 'cleanup.js'
209209
```

content/actions/use-cases-and-examples/building-and-testing/building-and-testing-nodejs.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
- name: Use Node.js
138138
uses: {% data reusables.actions.action-setup-node %}
139139
with:
140-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'18.x'{% endif %}
140+
node-version: '20.x'
141141
- run: npm ci
142142
- run: npm run build --if-present
143143
- run: npm test
@@ -162,7 +162,7 @@ steps:
162162
- name: Use Node.js
163163
uses: {% data reusables.actions.action-setup-node %}
164164
with:
165-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'18.x'{% endif %}
165+
node-version: '20.x'
166166
- name: Install dependencies
167167
run: npm ci
168168
```
@@ -175,7 +175,7 @@ steps:
175175
- name: Use Node.js
176176
uses: {% data reusables.actions.action-setup-node %}
177177
with:
178-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'18.x'{% endif %}
178+
node-version: '20.x'
179179
- name: Install dependencies
180180
run: npm install
181181
```
@@ -190,7 +190,7 @@ steps:
190190
- name: Use Node.js
191191
uses: {% data reusables.actions.action-setup-node %}
192192
with:
193-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'18.x'{% endif %}
193+
node-version: '20.x'
194194
- name: Install dependencies
195195
run: yarn --frozen-lockfile
196196
```
@@ -203,7 +203,7 @@ steps:
203203
- name: Use Node.js
204204
uses: {% data reusables.actions.action-setup-node %}
205205
with:
206-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'18.x'{% endif %}
206+
node-version: '20.x'
207207
- name: Install dependencies
208208
run: yarn
209209
```
@@ -225,7 +225,7 @@ steps:
225225
uses: {% data reusables.actions.action-setup-node %}
226226
with:
227227
always-auth: true
228-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'18.x'{% endif %}
228+
node-version: '20.x'
229229
registry-url: https://registry.npmjs.org
230230
scope: '@octocat'
231231
- name: Install dependencies
@@ -253,7 +253,7 @@ steps:
253253
- uses: {% data reusables.actions.action-checkout %}
254254
- uses: {% data reusables.actions.action-setup-node %}
255255
with:
256-
node-version: {% ifversion actions-node20-support %}'20'{% else %}'18'{% endif %}
256+
node-version: '20'
257257
cache: 'npm'
258258
- run: npm install
259259
- run: npm test
@@ -266,7 +266,7 @@ steps:
266266
- uses: {% data reusables.actions.action-checkout %}
267267
- uses: {% data reusables.actions.action-setup-node %}
268268
with:
269-
node-version: {% ifversion actions-node20-support %}'20'{% else %}'18'{% endif %}
269+
node-version: '20'
270270
cache: 'yarn'
271271
- run: yarn
272272
- run: yarn test
@@ -286,7 +286,7 @@ steps:
286286
version: 6.10.0
287287
- uses: {% data reusables.actions.action-setup-node %}
288288
with:
289-
node-version: {% ifversion actions-node20-support %}'20'{% else %}'18'{% endif %}
289+
node-version: '20'
290290
cache: 'pnpm'
291291
- run: pnpm install
292292
- run: pnpm test
@@ -304,7 +304,7 @@ steps:
304304
- name: Use Node.js
305305
uses: {% data reusables.actions.action-setup-node %}
306306
with:
307-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'18.x'{% endif %}
307+
node-version: '20.x'
308308
- run: npm install
309309
- run: npm run build --if-present
310310
- run: npm test

content/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
# Setup .npmrc file to publish to npm
7979
- uses: {% data reusables.actions.action-setup-node %}
8080
with:
81-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'16.x'{% endif %}
81+
node-version: '20.x'
8282
registry-url: 'https://registry.npmjs.org'
8383
- run: npm ci
8484
- run: npm publish {% ifversion artifact-attestations %}--provenance --access public{% endif %}
@@ -141,7 +141,7 @@ jobs:
141141
# Setup .npmrc file to publish to GitHub Packages
142142
- uses: {% data reusables.actions.action-setup-node %}
143143
with:
144-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'16.x'{% endif %}
144+
node-version: '20.x'
145145
registry-url: 'https://npm.pkg.github.com'
146146
# Defaults to the user or organization that owns the workflow file
147147
scope: '@octocat'
@@ -176,7 +176,7 @@ jobs:
176176
# Setup .npmrc file to publish to npm
177177
- uses: {% data reusables.actions.action-setup-node %}
178178
with:
179-
node-version: {% ifversion actions-node20-support %}'20.x'{% else %}'16.x'{% endif %}
179+
node-version: '20.x'
180180
registry-url: 'https://registry.npmjs.org'
181181
# Defaults to the user or organization that owns the workflow file
182182
scope: '@octocat'

content/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ shortTitle: Concurrency
44
intro: Run a single job at a time.
55
versions:
66
fpt: '*'
7-
ghes: '> 3.1'
7+
ghes: '*'
88
ghec: '*'
99
redirect_from:
1010
- /actions/using-jobs/using-concurrency

content/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ shortTitle: Permissions for `GITHUB_TOKEN`
44
intro: Modify the default permissions granted to `GITHUB_TOKEN`.
55
versions:
66
fpt: '*'
7-
ghes: '> 3.1'
7+
ghes: '*'
88
ghec: '*'
99
redirect_from:
1010
- /actions/using-jobs/assigning-permissions-to-jobs
11-
- >-
12-
/actions/writing-workflows/choosing-what-your-workflow-does/assigning-permissions-to-jobs
13-
- >-
14-
/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github-token
11+
- /actions/writing-workflows/choosing-what-your-workflow-does/assigning-permissions-to-jobs
12+
- /actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github-token
1513
---
1614

1715
{% data reusables.actions.enterprise-github-hosted-runners %}

content/actions/writing-workflows/choosing-what-your-workflow-does/using-environments-for-deployment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ shortTitle: Environments
44
intro: Specify a deployment environment in your workflow.
55
versions:
66
fpt: '*'
7-
ghes: '> 3.0'
7+
ghes: '*'
88
ghec: '*'
99
redirect_from:
1010
- /actions/using-jobs/using-environments-for-jobs

content/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions.md

-4
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,9 @@ You can make an environment variable available to any subsequent steps in a work
649649

650650
{% data reusables.actions.environment-variables-are-fixed %} For more information about the default environment variables, see [AUTOTITLE](/actions/learn-github-actions/environment-variables#default-environment-variables).
651651

652-
{% ifversion github-env-node-options %}
653-
654652
> [!NOTE]
655653
> Due to security restrictions, `GITHUB_ENV` cannot be used to set the `NODE_OPTIONS` environment variable.
656654

657-
{% endif %}
658-
659655
### Example of writing an environment variable to `GITHUB_ENV`
660656

661657
{% bash %}

content/admin/administering-your-instance/administering-your-instance-from-the-command-line/command-line-utilities.md

-2
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,6 @@ This utility returns webhook delivery logs for administrators to review and iden
543543
ghe-webhook-logs
544544
```
545545

546-
{% ifversion ghes > 3.10 %}
547546
To show all hook deliveries filtered by a given event:
548547

549548
```shell
@@ -554,7 +553,6 @@ To show all hook deliveries filtered by a given event and action:
554553

555554
```shell
556555
ghe-webhook-logs --event issues.opened
557-
{% endif %}
558556
To show all failed hook deliveries in the past day:
559557

560558
```shell

content/admin/configuring-settings/hardening-security-for-your-enterprise/configuring-host-keys-for-your-instance.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
title: Configuring host keys for your instance
33
shortTitle: Configure host keys
44
intro: 'You can increase the security of {% data variables.location.product_location %} by configuring the algorithms that your instance uses to generate and advertise host keys for incoming SSH connections.'
5-
permissions: 'Site administrators'
5+
permissions: Site administrators
66
redirect_from:
77
- /admin/configuration/configuring-your-enterprise/configuring-host-keys-for-your-instance
88
- /admin/configuration/hardening-security-for-your-enterprise/configuring-host-keys-for-your-instance
99
versions:
10-
ghes: '>= 3.6'
10+
ghes: '*'
1111
type: how_to
1212
topics:
1313
- Authentication

content/admin/configuring-settings/hardening-security-for-your-enterprise/configuring-ssh-connections-to-your-instance.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
title: Configuring SSH connections to your instance
33
shortTitle: Configure SSH connections
44
intro: 'You can increase the security of {% data variables.location.product_location %} by configuring the SSH algorithms that clients can use to establish a connection.'
5-
permissions: 'Site administrators'
5+
permissions: Site administrators
66
redirect_from:
77
- /admin/configuration/configuring-your-enterprise/configuring-ssh-connections-to-your-instance
88
- /admin/configuration/hardening-security-for-your-enterprise/configuring-ssh-connections-to-your-instance
99
versions:
10-
ghes: '>= 3.6'
10+
ghes: '*'
1111
type: how_to
1212
topics:
1313
- Authentication

content/admin/managing-github-actions-for-your-enterprise/enabling-github-actions-for-github-enterprise-server/managing-self-hosted-runners-for-dependabot-updates.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ redirect_from:
66
- /admin/github-actions/enabling-github-actions-for-github-enterprise-server/managing-self-hosted-runners-for-dependabot-updates
77
allowTitleToDifferFromFilename: true
88
versions:
9-
ghes: '> 3.2'
9+
ghes: '*'
1010
topics:
1111
- Enterprise
1212
- Security

content/admin/managing-iam/using-saml-for-enterprise-iam/enabling-encrypted-assertions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: Enabling encrypted assertions
33
shortTitle: Enable encrypted assertions
44
intro: 'You can improve {% data variables.location.product_location %}''s security with SAML single sign-on (SSO) by encrypting the messages that your SAML identity provider (IdP) sends.'
5-
permissions: 'Site administrators'
5+
permissions: Site administrators
66
versions:
7-
ghes: '> 3.3'
7+
ghes: '*'
88
type: how_to
99
topics:
1010
- Accounts

0 commit comments

Comments
 (0)