rename branch and add note (#15378)

This commit is contained in:
Craig Osterhout 2022-08-23 13:43:03 -07:00 committed by GitHub
parent 318c432692
commit cf480fae08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 11 deletions

View File

@ -70,17 +70,21 @@ name: ci
{% endraw %}
Then, we will choose when we run this workflow. In our example, we are going to
do it for every push against the main branch of our project:
do it for every push against the master branch of our project:
{% raw %}
```yaml
on:
push:
branches:
- 'main'
- 'master'
```
{% endraw %}
> **Note**
>
> The branch name may be `main` or `master`. Verify the name of the branch for your repository and update the configuration accordingly.
Now, we need to specify what we actually want to happen within our workflow
(what jobs), we are going to add our build one and select that it runs on the
latest Ubuntu instances available:
@ -191,7 +195,7 @@ tags and pull requests:
on:
push:
branches:
- 'main'
- 'master'
tags:
- 'v*'
```
@ -221,12 +225,12 @@ First we have to handle pull request events:
on:
push:
branches:
- 'main'
- 'master'
tags:
- 'v*'
pull_request:
branches:
- 'main'
- 'master'
```
{% endraw %}

View File

@ -58,13 +58,16 @@ First, we will name this workflow:
name: CI to Docker Hub
```
Then, we will choose when we run this workflow. In our example, we are going to do it for every push against the main branch of our project:
Then, we will choose when we run this workflow. In our example, we are going to do it for every push against the master branch of our project:
```yaml
on:
push:
branches: [ main ]
branches: [ master ]
```
> **Note**
>
> The branch name may be `main` or `master`. Verify the name of the branch for your repository and update the configuration accordingly.
Now, we need to specify what we actually want to happen within our action (what jobs), we are going to add our build one and select that it runs on the latest Ubuntu instances available:

View File

@ -57,14 +57,18 @@ First, we will name this workflow:
name: CI to Docker Hub
```
Then, we will choose when we run this workflow. In our example, we are going to do it for every push against the main branch of our project:
Then, we will choose when we run this workflow. In our example, we are going to do it for every push against the master branch of our project:
```yaml
on:
push:
branches: [ main ]
branches: [ master ]
```
> **Note**
>
> The branch name may be `main` or `master`. Verify the name of the branch for your repository and update the configuration accordingly.
Now, we need to specify what we actually want to happen within our action (what jobs), we are going to add our build one and select that it runs on the latest Ubuntu instances available:
```yaml

View File

@ -57,14 +57,18 @@ First, we will name this workflow:
name: CI to Docker Hub
```
Then, we will choose when we run this workflow. In our example, we are going to do it for every push against the main branch of our project:
Then, we will choose when we run this workflow. In our example, we are going to do it for every push against the master branch of our project:
```yaml
on:
push:
branches: [ main ]
branches: [ master ]
```
> **Note**
>
> The branch name may be `main` or `master`. Verify the name of the branch for your repository and update the configuration accordingly.
Now, we need to specify what we actually want to happen within our action (what jobs), we are going to add our build one and select that it runs on the latest Ubuntu instances available:
```yaml