Skip to content

Commit 77a03fd

Browse files
author
Martin Lopes
authored
Merge branch 'main' into patch-1
2 parents f202328 + c1b77ac commit 77a03fd

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

content/actions/creating-actions/setting-exit-codes-for-actions.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type: 'how_to'
2323
Exit status | Check run status | Description
2424
------------|------------------|------------
2525
`0` | `success` | The action completed successfully and other tasks that depends on it can begin.
26-
Nonzero value | `failure` | Any other exit code indicates the action failed. When an action fails, all concurrent actions are canceled and future actions are skipped. The check run and check suite both get a `failure` status.
26+
Nonzero value (any integer but 0)| `failure` | Any other exit code indicates the action failed. When an action fails, all concurrent actions are canceled and future actions are skipped. The check run and check suite both get a `failure` status.
2727

2828
### Setting a failure exit code in a JavaScript action
2929

@@ -43,13 +43,11 @@ For more information, see "[Creating a JavaScript action](/articles/creating-a-j
4343

4444
If you are creating a Docker container action, you can set a failure exit code in your `entrypoint.sh` script. For example:
4545

46-
{% raw %}
4746
```
4847
if <condition> ; then
4948
echo "Game over!"
5049
exit 1
5150
fi
5251
```
53-
{% endraw %}
5452

5553
For more information, see "[Creating a Docker container action](/articles/creating-a-docker-container-action)."

content/developers/apps/identifying-and-authorizing-users-for-github-apps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ By default, the response takes the following form. The response parameters `expi
9494
```json
9595
{
9696
"access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a",
97-
"expires_in": "28800",
97+
"expires_in": 28800,
9898
"refresh_token": "r1.c1b4a2e77838347a7e420ce178f2e7c6912e1692",
99-
"refresh_token_expires_in": "15811200",
99+
"refresh_token_expires_in": 15811200,
100100
"scope": "",
101101
"token_type": "bearer"
102102
}

data/reusables/github-actions/using-context-or-environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name: CI
1111
on: push
1212
jobs:
1313
prod-check:
14-
if: github.ref == 'refs/heads/main'
14+
if: ${{ github.ref == 'refs/heads/main' }}
1515
runs-on: ubuntu-latest
1616
steps:
1717
- run: echo "Deploying to production server on branch $GITHUB_REF"

0 commit comments

Comments
 (0)