Skip to content

Commit 392b52a

Browse files
authored
Hack week 2025: remove unneeded FBV instances (23) (#54018)
1 parent 49205b4 commit 392b52a

File tree

20 files changed

+20
-68
lines changed

20 files changed

+20
-68
lines changed

content/actions/hosting-your-own-runners/managing-self-hosted-runners/using-labels-with-self-hosted-runners.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ shortTitle: Label runners
1313

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

16-
For information on how to use labels to route jobs to specific types of self-hosted runners, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/using-self-hosted-runners-in-a-workflow). {% ifversion target-runner-groups %}You can also route jobs to runners in a specific group. For more information, see [AUTOTITLE](/actions/using-jobs/choosing-the-runner-for-a-job#targeting-runners-in-a-group).{% endif %}
16+
For information on how to use labels to route jobs to specific types of self-hosted runners, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/using-self-hosted-runners-in-a-workflow). You can also route jobs to runners in a specific group. For more information, see [AUTOTITLE](/actions/using-jobs/choosing-the-runner-for-a-job#targeting-runners-in-a-group).
1717

1818
{% data reusables.actions.self-hosted-runner-management-permissions-required %}
1919

content/actions/hosting-your-own-runners/managing-self-hosted-runners/using-self-hosted-runners-in-a-workflow.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Using self-hosted runners in a workflow
3-
intro: 'To use self-hosted runners in a workflow, you can use labels{% ifversion target-runner-groups %} or groups{% endif %} to specify the runner for a job.'
3+
intro: 'To use self-hosted runners in a workflow, you can use labels or groups to specify the runner for a job.'
44
redirect_from:
55
- /github/automating-your-workflow-with-github-actions/using-self-hosted-runners-in-a-workflow
66
- /actions/automating-your-workflow-with-github-actions/using-self-hosted-runners-in-a-workflow
@@ -15,7 +15,7 @@ shortTitle: Use runners in a workflow
1515

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

18-
You can target self-hosted runners for use in a workflow based on the labels assigned to the runners{% ifversion target-runner-groups %}, or their group membership, or a combination of these{% endif %}.
18+
You can target self-hosted runners for use in a workflow based on the labels assigned to the runners, or their group membership, or a combination of these.
1919

2020
>[!IMPORTANT]Runner Scale Sets do not support multiple labels, only the name of the runner can be used in place of a label. See [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/deploying-runner-scale-sets-with-actions-runner-controller).
2121
@@ -27,8 +27,6 @@ Labels allow you to send workflow jobs to specific types of self-hosted runners,
2727

2828
For information on creating custom and default labels, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/using-labels-with-self-hosted-runners).
2929

30-
{% ifversion target-runner-groups %}
31-
3230
## About self-hosted runner groups
3331

3432
For self-hosted runners defined at the organization {% ifversion ghec or ghes %}or enterprise levels{% else %}level{% endif %}, you can group your runners with shared characteristics into a single runner group and then configure your job to target the runner group.
@@ -37,8 +35,6 @@ To specify a self-hosted runner group for your job, configure `runs-on.group` in
3735

3836
For information on creating and managing runner groups, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/managing-access-to-self-hosted-runners-using-groups).
3937

40-
{% endif %}
41-
4238
{% ifversion repository-actions-runners %}
4339

4440
## Viewing available runners for a repository
@@ -95,8 +91,6 @@ runs-on: [self-hosted, linux, x64, gpu]
9591

9692
These labels operate cumulatively, so a self-hosted runner must have all four labels to be eligible to process the job.
9793

98-
{% ifversion target-runner-groups %}
99-
10094
## Using groups to route jobs
10195

10296
{% data reusables.actions.jobs.example-runs-on-groups %}
@@ -105,13 +99,11 @@ These labels operate cumulatively, so a self-hosted runner must have all four la
10599

106100
{% data reusables.actions.jobs.example-runs-on-labels-and-groups %}
107101

108-
{% endif %}
109-
110102
## Routing precedence for self-hosted runners
111103

112-
When routing a job to a self-hosted runner, {% data variables.product.prodname_dotcom %} looks for a runner that matches the job's `runs-on` labels{% ifversion target-runner-groups %} and groups{% endif %}:
104+
When routing a job to a self-hosted runner, {% data variables.product.prodname_dotcom %} looks for a runner that matches the job's `runs-on` labels and groups:
113105

114-
* If {% data variables.product.prodname_dotcom %} finds an online and idle runner that matches the job's `runs-on` labels{% ifversion target-runner-groups %} and groups{% endif %}, the job is then assigned and sent to the runner.
106+
* If {% data variables.product.prodname_dotcom %} finds an online and idle runner that matches the job's `runs-on` labels and groups, the job is then assigned and sent to the runner.
115107
* If the runner doesn't pick up the assigned job within 60 seconds, the job is re-queued so that a new runner can accept it.
116-
* If {% data variables.product.prodname_dotcom %} doesn't find an online and idle runner that matches the job's `runs-on` labels {% ifversion target-runner-groups %} and groups{% endif %}, then the job will remain queued until a runner comes online.
108+
* If {% data variables.product.prodname_dotcom %} doesn't find an online and idle runner that matches the job's `runs-on` labels and groups, then the job will remain queued until a runner comes online.
117109
* If the job remains queued for more than 24 hours, the job will fail.

content/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/disabling-and-enabling-a-workflow.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,7 @@ You can also disable and enable a workflow using the REST API. For more informat
3636
1. In the left sidebar, click the workflow you want to disable.
3737
1. Click {% octicon "kebab-horizontal" aria-label="Show workflow options" %} to display a dropdown menu and click **Disable workflow**.
3838

39-
{% ifversion workflow-nav-2022 -%}
4039
![Screenshot of a workflow. The "Show workflow options" button, shown with a kebab icon, and the "Disable workflow" menu item are outlined in orange.](/assets/images/help/repository/actions-disable-workflow-2022.png)
41-
{%- else -%}
42-
![Screenshot of a workflow. Features apart from the "Disable workflow" menu item are grayed out.](/assets/images/help/repository/actions-disable-workflow.png)
43-
44-
The disabled workflow is marked {% octicon "stop" aria-label="The stop icon" %} to indicate its status.
45-
46-
![Screenshot showing the actions list. The name of the disabled "Greet Everyone" workflow is prefixed with a stop icon.](/assets/images/help/repository/actions-find-disabled-workflow.png)
47-
{%- endif %}
4840

4941
{% endwebui %}
5042

@@ -70,11 +62,8 @@ You can re-enable a workflow that was previously disabled.
7062
{% data reusables.repositories.actions-tab %}
7163
1. In the left sidebar, click the workflow you want to enable.
7264

73-
{% ifversion workflow-nav-2022 -%}
7465
![Screenshot of the "Actions" page. In the left sidebar, a workflow name is highlighted with an outline in dark orange.](/assets/images/help/repository/actions-select-disabled-workflow-2022.png)
75-
{%- else -%}
76-
![Screenshot of the "Actions" page. Features are grayed out apart from one workflow name in the left sidebar.](/assets/images/help/repository/actions-select-disabled-workflow.png)
77-
{%- endif %}
66+
7867
1. Click **Enable workflow**.
7968

8069
{% endwebui %}

content/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/manually-running-a-workflow.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ To trigger the `workflow_dispatch` event, your workflow must be in the default b
2929
{% data reusables.repositories.actions-tab %}
3030
1. In the left sidebar, click the name of the workflow you want to run.
3131

32-
{% ifversion workflow-nav-2022 -%}
3332
![Screenshot of the "Actions" page. In the left sidebar, a workflow name is highlighted with an outline in dark orange.](/assets/images/help/repository/actions-select-workflow-2022.png)
34-
{%- else -%}
35-
![Screenshot of the "Actions" page. Features apart from one workflow in the left sidebar are grayed out.](/assets/images/help/repository/actions-select-workflow.png)
36-
{%- endif %}
33+
3734
1. Above the list of workflow runs, click the **Run workflow** button.
3835

3936
> [!NOTE]

content/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ In addition to viewing your audit log, you can monitor activity in your enterpri
4242

4343
As an enterprise owner{% ifversion ghes %} or site administrator{% endif %}, you can interact with the audit log data for your enterprise in several ways:
4444
* You can view the audit log for your enterprise. For more information, see [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/accessing-the-audit-log-for-your-enterprise).
45-
* You can search the audit log for specific events{% ifversion ghec %} and export audit log data{% endif %}. For more information, see [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/searching-the-audit-log-for-your-enterprise){% ifversion ghec %} and [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/exporting-audit-log-activity-for-your-enterprise){% endif %}.{% ifversion token-audit-log %}
46-
* You can identify all events that were performed by a specific access token. For more information, see [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/identifying-audit-log-events-performed-by-an-access-token).{% endif %}{% ifversion ghes %}
45+
* You can search the audit log for specific events{% ifversion ghec %} and export audit log data{% endif %}. For more information, see [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/searching-the-audit-log-for-your-enterprise){% ifversion ghec %} and [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/exporting-audit-log-activity-for-your-enterprise){% endif %}.
46+
* You can identify all events that were performed by a specific access token. For more information, see [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/identifying-audit-log-events-performed-by-an-access-token).{% ifversion ghes %}
4747
* You can configure settings, such as the retention period for audit log events and whether Git events are included. For more information, see [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/configuring-the-audit-log-for-your-enterprise).{% endif %}
4848
{%- ifversion enterprise-audit-log-ip-addresses %}
4949
* You can display the IP address associated with events in the audit log. For more information, see [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/displaying-ip-addresses-in-the-audit-log-for-your-enterprise).

content/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/identifying-audit-log-events-performed-by-an-access-token.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: Identifying audit log events performed by an access token
33
shortTitle: Identify events by token
44
intro: 'You can identify the actions performed by a specific token in your enterprise.'
55
versions:
6-
feature: token-audit-log
6+
ghes: '*'
7+
ghec: '*'
78
topics:
89
- Organizations
910
- Authentication

content/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/searching-the-audit-log-for-your-enterprise.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ The `key:value` pairs that can be used in a search query are:
7373
| {% ifversion ghes %} |
7474
| `business_id` | ID of the enterprise affected by the action (if applicable). |
7575
| {% endif %} |
76-
| {% ifversion token-audit-log %} |
7776
| `created` | Time at which the action occurred.{% ifversion ghes %} If querying the audit log from the site admin dashboard, use `created_at` instead. |
78-
| {% endif %} |
7977
| `country` | Name of the country where the actor was when performing the action. |
8078
| `country_code` | Two-letter short code of the country where the actor was when performing the action. |
8179
| {% ifversion ghes %} |
@@ -162,9 +160,6 @@ Using the qualifier `country`, you can filter events in the audit log based on t
162160
* `country:Mexico` finds all events that occurred in Mexico.
163161
* `country:"United States"` all finds events that occurred in the United States.
164162

165-
{% ifversion token-audit-log %}
166-
167163
### Search based on the token that performed the action
168164

169165
Use the `hashed_token` qualifier to search based on the token that performed the action. Before you can search for a token, you must generate a SHA-256 hash. For more information, see [AUTOTITLE](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/identifying-audit-log-events-performed-by-an-access-token).
170-
{% endif %}

content/organizations/collaborating-with-your-team/about-team-discussions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ versions:
1010
topics:
1111
- Community
1212
---
13-
{% ifversion team-discussions-migration %}
13+
1414
{% data reusables.organizations.team-discussions-migration %}
15-
{% endif %}
1615

1716
{% data reusables.organizations.team-discussions-purpose %}
1817

content/organizations/collaborating-with-your-team/creating-a-team-discussion.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ topics:
1212
shortTitle: Create a team discussion
1313
---
1414

15-
{% ifversion team-discussions-migration %}
1615
{% data reusables.organizations.team-discussions-migration %}
17-
{% endif %}
1816

1917
{% data reusables.organizations.team-discussions-permissions %} For more information, see [AUTOTITLE](/organizations/collaborating-with-your-team/about-team-discussions).
2018

content/organizations/collaborating-with-your-team/editing-or-deleting-a-team-discussion.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ topics:
1212
shortTitle: Manage a team discussion
1313
---
1414

15-
{% ifversion team-discussions-migration %}
1615
{% data reusables.organizations.team-discussions-migration %}
17-
{% endif %}
1816

1917
{% data reusables.profile.access_org %}
2018
{% data reusables.user-settings.access_org %}

0 commit comments

Comments
 (0)