Skip to content

Commit c9258a8

Browse files
Merge branch 'main' into sophie-5758
2 parents 50c0b2d + 156ec4b commit c9258a8

File tree

482 files changed

+4198
-1892
lines changed

Some content is hidden

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

482 files changed

+4198
-1892
lines changed

.github/workflows/azure-preview-env-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ permissions:
3434

3535
# This allows one deploy workflow to interrupt another
3636
concurrency:
37-
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label }}'
37+
group: 'preview-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || github.event.inputs.PR_NUMBER }}'
3838
cancel-in-progress: true
3939

4040
jobs:

.github/workflows/azure-preview-env-destroy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
permissions:
2020
contents: read
2121

22+
# This allows one deploy workflow to interrupt another
23+
concurrency:
24+
group: 'preview-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || github.event.inputs.PR_NUMBER }}'
25+
cancel-in-progress: true
26+
2227
jobs:
2328
destory-azure-preview-env:
2429
name: Destroy

.github/workflows/optimize-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
git checkout $GITHUB_HEAD_REF
4242
4343
echo "List the files that changed"
44-
git diff --name-only $GITHUB_HEAD_REF $GITHUB_BASE_REF
44+
git diff --name-only --diff-filter=d $GITHUB_BASE_REF $GITHUB_HEAD_REF
4545
4646
echo "Run optipng on pngs in from the diff"
47-
git diff --name-only -z $GITHUB_HEAD_REF $GITHUB_BASE_REF -- '*.png' | xargs -0 optipng -nx
47+
git diff --name-only -z --diff-filter=d $GITHUB_BASE_REF $GITHUB_HEAD_REF -- '*.png' | xargs -0 optipng -nx
4848
4949
- name: Make a commit and a push
5050
run: |
111 KB
Loading

components/release-notes/PatchNotes.module.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import "@primer/css/layout/index.scss";
2-
31
.sectionHeading {
42
scroll-margin-top: 70px !important;
53
}

content/actions/automating-builds-and-tests/building-and-testing-net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
runs-on: ubuntu-latest
8686
strategy:
8787
matrix:
88-
dotnet: [ '3.0', '3.1.x', '5.0.x' ]
88+
dotnet-version: [ '3.0', '3.1.x', '5.0.x' ]
8989
9090
steps:
9191
- uses: actions/checkout@v2

content/actions/learn-github-actions/contexts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ The `github` context contains information about the workflow run and the event t
206206
| `github.retention_days` | `string` | The number of days that workflow run logs and artifacts are kept. |
207207
| `github.run_id` | `string` | {% data reusables.actions.run_id_description %} |
208208
| `github.run_number` | `string` | {% data reusables.actions.run_number_description %} |
209+
{%- ifversion fpt or ghec or ghes > 3.5 or ghae-issue-4722 %}
209210
| `github.run_attempt` | `string` | A unique number for each attempt of a particular workflow run in a repository. This number begins at 1 for the workflow run's first attempt, and increments with each re-run. |
211+
{% endif %}
210212
| `github.server_url` | `string` | The URL of the GitHub server. For example: `https://github.com`. |
211213
| `github.sha` | `string` | The commit SHA that triggered the workflow run. |
212214
| `github.token` | `string` | A token to authenticate on behalf of the GitHub App installed on your repository. This is functionally equivalent to the `GITHUB_TOKEN` secret. For more information, see "[Automatic token authentication](/actions/security-guides/automatic-token-authentication)." |

content/actions/learn-github-actions/understanding-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You can configure a {% data variables.product.prodname_actions %} _workflow_ to
3838

3939
A workflow is a configurable automated process that will run one or more jobs. Workflows are defined by a YAML file checked in to your repository and will run when triggered by an event in your repository, or they can be triggered manually, or at a defined schedule.
4040

41-
Your repository can have multiple workflows in a repository, each of which can perform a different set of steps. For example, you can have one workflow to build and test pull requests, another workflow to deploy your application every time a release is created, and still another workflow that adds a label every time someone opens a new issue.
41+
You can have multiple workflows in a repository, each of which can perform a different set of steps. For example, you can have one workflow to build and test pull requests, another workflow to deploy your application every time a release is created, and still another workflow that adds a label every time someone opens a new issue.
4242

4343
{% ifversion fpt or ghes > 3.3 or ghae-issue-4757 or ghec %}You can reference a workflow within another workflow, see "[Reusing workflows](/actions/learn-github-actions/reusing-workflows)."{% endif %}
4444

@@ -266,4 +266,4 @@ To understand how billing works for {% data variables.product.prodname_actions %
266266
## Further reading
267267
268268
{% ifversion ghec or ghes or ghae %}
269-
- "[About {% data variables.product.prodname_actions %} for enterprises](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises)"{% endif %}
269+
- "[About {% data variables.product.prodname_actions %} for enterprises](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises)"{% endif %}

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,25 @@ on:
685685

686686
{% endnote %}
687687

688+
#### Running your workflow when a pull request merges
689+
690+
When a pull request merges, the pull request is automatically closed. To run a workflow when a pull request merges, use the `pull_request` `closed` event type along with a conditional that checks the `merged` value of the event. For example, the following workflow will run whenever a pull request closes. The `if_merged` job will only run if the pull request was also merged.
691+
692+
```yaml
693+
on:
694+
pull_request:
695+
types:
696+
- closed
697+
698+
jobs:
699+
if_merged:
700+
if: github.event.pull_request.merged == true
701+
runs-on: ubuntu-latest
702+
steps:
703+
- run: |
704+
echo The PR was merged
705+
```
706+
688707
{% data reusables.developer-site.pull_request_forked_repos_link %}
689708

690709
### `pull_request_comment` (use `issue_comment`)
@@ -869,6 +888,25 @@ on:
869888

870889
{% endnote %}
871890

891+
#### Running your workflow when a pull request merges
892+
893+
When a pull request merges, the pull request is automatically closed. To run a workflow when a pull request merges, use the `pull_request_target` `closed` event type along with a conditional that checks the `merged` value of the event. For example, the following workflow will run whenever a pull request closes. The `if_merged` job will only run if the pull request was also merged.
894+
895+
```yaml
896+
on:
897+
pull_request_target:
898+
types:
899+
- closed
900+
901+
jobs:
902+
if_merged:
903+
if: github.event.pull_request_target.merged == true
904+
runs-on: ubuntu-latest
905+
steps:
906+
- run: |
907+
echo The PR was merged
908+
```
909+
872910
### `push`
873911

874912
| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |

content/admin/user-management/managing-users-in-your-enterprise/managing-dormant-users.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ topics:
5656

5757
{% data reusables.enterprise-accounts.dormant-user-release-phase %}
5858

59-
{% warning %}
60-
61-
**Note:** During the private beta, ongoing improvements to the report download feature may limit its availability.
62-
63-
{% endwarning %}
64-
6559
## Downloading the dormant users report from your enterprise account
6660

6761
{% data reusables.enterprise-accounts.access-enterprise %}

0 commit comments

Comments
 (0)