diff --git a/ci-cd/github-actions.md b/ci-cd/github-actions.md index 777e26e130..6f3f265f2a 100644 --- a/ci-cd/github-actions.md +++ b/ci-cd/github-actions.md @@ -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 %} diff --git a/language/java/configure-ci-cd.md b/language/java/configure-ci-cd.md index 52626dcb77..986bdb0e46 100644 --- a/language/java/configure-ci-cd.md +++ b/language/java/configure-ci-cd.md @@ -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: diff --git a/language/nodejs/configure-ci-cd.md b/language/nodejs/configure-ci-cd.md index 74114f6802..3b99753edb 100644 --- a/language/nodejs/configure-ci-cd.md +++ b/language/nodejs/configure-ci-cd.md @@ -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 diff --git a/language/python/configure-ci-cd.md b/language/python/configure-ci-cd.md index 56ad7421c3..1499492697 100644 --- a/language/python/configure-ci-cd.md +++ b/language/python/configure-ci-cd.md @@ -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