Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7e7addf
Add new badge and new icons and screenshots
saritai Apr 6, 2021
b375039
Merge branch 'main' into new-badge-2020
saritai Apr 7, 2021
6a226ab
Apply suggestions from writer code review
saritai Apr 8, 2021
9e00817
Switched order of badges
saritai Apr 8, 2021
de0e743
Updated description to be more clear and mirror ACV badge
saritai Apr 8, 2021
eac2a99
Merge branch 'main' into repo-sync
Octomerger Apr 19, 2021
ec9d342
Merge pull request #18855 from github/repo-sync
Octomerger Apr 19, 2021
3759e49
re-arranged two packages
siminapasat Apr 19, 2021
a3bf735
Added few more dependencies found today
siminapasat Apr 19, 2021
dfcfd0d
added a sentence on how we have the list
siminapasat Apr 19, 2021
12bc445
Add known issue about error on branch deletion (#18858)
mattpollard Apr 19, 2021
6691a1c
Merge branch 'main' into repo-sync
Octomerger Apr 19, 2021
264e894
Merge pull request #5523 from github/repo-sync
Octomerger Apr 19, 2021
b15f084
Merge branch 'main' into new-badge-2020
saritai Apr 19, 2021
e27df70
Merge pull request #18612 from github/new-badge-2020
saritai Apr 19, 2021
22b07d1
Merge branch 'main' into repo-sync
Octomerger Apr 19, 2021
9923f16
Merge pull request #18859 from github/repo-sync
Octomerger Apr 19, 2021
7464453
Merge pull request #5527 from github/repo-sync
Octomerger Apr 19, 2021
231635f
Revert "Revert "[April 13] serialization feature doc"" (#18742)
Apr 19, 2021
134e930
Merge branch 'main' into repo-sync
Octomerger Apr 19, 2021
9c3539f
Merge pull request #5528 from github/repo-sync
Octomerger Apr 19, 2021
a35af41
Merge pull request #18861 from github/repo-sync
Octomerger Apr 19, 2021
acd5fa8
There are only 28 days in February (#18753)
Apr 19, 2021
149f417
Add machine type section to "Using Codespaces in Visual Studio Code" …
hubwriter Apr 19, 2021
736a2f6
Merge pull request #5529 from github/repo-sync
Octomerger Apr 19, 2021
9f9992b
Merge branch 'main' into repo-sync
Octomerger Apr 19, 2021
6b65704
Merge branch 'main' into repo-sync
Octomerger Apr 19, 2021
95a4a12
Merge pull request #18863 from github/repo-sync
Octomerger Apr 19, 2021
307a7e5
Merge pull request #5530 from github/repo-sync
Octomerger Apr 19, 2021
98f5c4b
Support for Dependabot private registry `hex-organization` (#18793)
asciimike Apr 19, 2021
b80a843
Merge branch 'main' into repo-sync
Octomerger Apr 19, 2021
adb40b0
Merge pull request #5531 from github/repo-sync
Octomerger Apr 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Revert "[April 13] serialization feature doc"" (github#18742)
  • Loading branch information
Sarah Edwards authored Apr 19, 2021
commit 231635f906a58d833dde6581f08fa9d56d0705c8
3 changes: 3 additions & 0 deletions content/actions/reference/environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ For more information on syntax to reference environments in workflows, see "[Wor

When a workflow references an environment, the environment will appear in the repository's deployments. For more information about viewing current and previous deployments, see "[Viewing deployment history](/developers/overview/viewing-deployment-history)."

### Using concurrency to serialize deployments in an environment
You can use concurrency so that an environment has a maximum of one deployment in progress and one deployment pending at a time. For more information, see "[Workflow syntax for GitHub Actions](/actions/reference/workflow-syntax-for-github-actions#concurrency)."

### Deleting an environment

{% data reusables.github-actions.permissions-statement-environment %}
Expand Down
34 changes: 33 additions & 1 deletion content/actions/reference/workflow-syntax-for-github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,18 @@ defaults:
working-directory: scripts
```

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" or currentVersion == "github-ae@next" %}
### `concurrency`

{% data reusables.actions.concurrency-beta %}

Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. The expression can only use the `github` context. For more information about expressions, see "[Context and expression syntax for {% data variables.product.prodname_actions %}](/actions/reference/context-and-expression-syntax-for-github-actions)."

You can also specify `concurrency` at the job level. For more information, see [`jobs.<job_id>.concurrency`](/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idconcurrency).

{% data reusables.actions.actions-group-concurrency %}

{% endif %}
### `jobs`

A workflow run is made up of one or more jobs. Jobs run in parallel by default. To run jobs sequentially, you can define dependencies on other jobs using the `jobs.<job_id>.needs` keyword.
Expand Down Expand Up @@ -347,10 +359,11 @@ The environment that the job references. All environment protection rules must p
You can provide the environment as only the environment `name`, or as an environment object with the `name` and `url`. The URL maps to `environment_url` in the deployments API. For more information about the deployments API, see "[Deployments](/rest/reference/repos#deployments)."

##### Example using a single environment name

{% raw %}
```yaml
environment: staging_environment
```
{% endraw %}

##### Example using environment name and URL

Expand All @@ -372,6 +385,25 @@ environment:
{% endraw %}
{% endif %}


{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" or currentVersion == "github-ae@next" %}
### `jobs.<job_id>.concurrency`

{% data reusables.actions.concurrency-beta %}

{% note %}

**Note:** When concurrency is specified at the job level, order is not guaranteed for jobs or runs that queue within 5 minutes of each other.

{% endnote %}

Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. The expression can use any context except for the `secrets` context. For more information about expressions, see "[Context and expression syntax for {% data variables.product.prodname_actions %}](/actions/reference/context-and-expression-syntax-for-github-actions)."

You can also specify `concurrency` at the workflow level. For more information, see [`concurrency`](/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#concurrency).

{% data reusables.actions.actions-group-concurrency %}

{% endif %}
### `jobs.<job_id>.outputs`

A `map` of outputs for a job. Job outputs are available to all downstream jobs that depend on this job. For more information on defining job dependencies, see [`jobs.<job_id>.needs`](#jobsjob_idneeds).
Expand Down
25 changes: 25 additions & 0 deletions data/reusables/actions/actions-group-concurrency.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be `pending`. Any previously pending job or workflow in the concurrency group will be canceled. To also cancel any currently running job or workflow in the same concurrency group, specify `cancel-in-progress: true`.

##### Examples using concurrency and the default behavior

{% raw %}
```yaml
concurrency: staging_environment
```
{% endraw %}

{% raw %}
```yaml
concurrency: ci-${{ github.ref }}
```
{% endraw %}

##### Example using concurrency to cancel any in-progress job or run

{% raw %}
```yaml
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
```
{% endraw %}
5 changes: 5 additions & 0 deletions data/reusables/actions/concurrency-beta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% note %}

**Note:** Concurrency is currently in beta and subject to change.

{% endnote %}