mirror of
https://github.com/actions/checkout.git
synced 2025-03-28 11:00:05 +01:00
Check Git Operations availability before checking out example
This commit is contained in:
parent
2ff2fbdea4
commit
9ad0123bf8
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -230,6 +230,16 @@ jobs:
|
|||
git fetch --prune --unshallow --tags
|
||||
```
|
||||
|
||||
## Check Git Operations availability before checking out
|
||||
|
||||
```yaml
|
||||
- uses: crazy-max/ghaction-github-status@v1
|
||||
with:
|
||||
git_threshold: major_outage
|
||||
- uses: actions/checkout@v2
|
||||
if: success()
|
||||
```
|
||||
|
||||
# License
|
||||
|
||||
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
||||
|
|
Loading…
Add table
Reference in a new issue