From 10d484e05fc905ff9d9da09b765a45d17ab2909c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Jos=C3=A9=20Torres?=
<43612178+JuanJTorres11@users.noreply.github.com>
Date: Tue, 21 Mar 2023 12:39:35 -0500
Subject: [PATCH 1/9] fix(readme): actualizar ejemplos de retos
---
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 8b1eb72..47b4b96 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ _Aprende los conceptos básicos para crear tu primer flujo de CI/CD para tus pro
- **¿Qué aprenderás?**: Aprenderás a automatizar los procesos de compilación, pruebas y despliegue de sus proyectos.
- **¿Qué construirás?**: Una serie de flujos de trabajo que usen los principales conceptos detrás de GitHub Actions (Jobs, Steps, Actions, Variables, Expresiones, entre otros).
- **Prerequisitos**: Conocimientos básicos sobre Git y GitHub (realizar commits y push; crear pull requests e issues; agregar etiquetas).
-- **Duración**: Este curso tendrá X pasos y lo podrás terminar en Y horas.
+- **Duración**: Este curso tendrá 5 pasos y lo podrás terminar en menos de 2 horas.
## ¿Cómo iniciar el curso?
@@ -161,6 +161,7 @@ Ahora que conoces los componentes básicos de un workflow en GitHub Actions pode
Agregue el siguiente contenido al archivo `triggers.yml`:
```yaml
name: Triggers
+ run-name: ¡Estoy aprendiendo a usar diferentes Triggers!
on:
push:
branches:
@@ -251,6 +252,7 @@ Puedes combinar valores literales, referencias de contexto y funciones usando op
Agregue el siguiente contenido al archivo `expresiones.yml`:
```yaml
name: Expresiones
+ run-name: ¡Estoy aprendiendo a usar Expresiones!
on:
workflow_dispatch:
inputs:
@@ -322,6 +324,7 @@ Los más usados son:
Agregue el siguiente contenido al archivo `contextos.yml`:
```yaml
name: Contexto
+ run-name: ¡Estoy aprendiendo a usar Contextos!
on: push
jobs:
check-main:
@@ -364,6 +367,7 @@ El uso de variables de entorno es lo único que te falta por aprender de los pri
Agregue el siguiente contenido al archivo `variables.yml`:
```yaml
name: Saludo usando variables
+ run-name: ¡Estoy aprendiendo a usar Variables!
on:
workflow_dispatch
env:
From 49de9f3ff38a6ffca92041e5e54720278627860d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Jos=C3=A9=20Torres?=
<43612178+JuanJTorres11@users.noreply.github.com>
Date: Tue, 21 Mar 2023 12:50:11 -0500
Subject: [PATCH 2/9] fix(readme): actualizar enlace
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 47b4b96..c2530f3 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ _Aprende los conceptos básicos para crear tu primer flujo de CI/CD para tus pro
## ¿Cómo iniciar el curso?
1. Haz click derecho en **Start course** y abre el enlace en una nueva pestaña.
-
[](TBD-generate)
+
[](https://github.com/platzi/curso-github-actions/generate)
2. En la nueva pestaña, llena los campos para crear un nuevo repositorio.
- En owner, elige tu cuenta personal o la de tu organización.
- Es recomendado dejar el repositorio como público ya que los privados consumen [minutos que pueden ser cobrados](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions).
From d4c2618240a181a5476cfb9ce1389a34b2fca1ad Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 1 Jun 2023 15:00:21 +0000
Subject: [PATCH 3/9] build(deps): bump skills/action-update-step from 1 to 2
Bumps [skills/action-update-step](https://github.com/skills/action-update-step) from 1 to 2.
- [Release notes](https://github.com/skills/action-update-step/releases)
- [Commits](https://github.com/skills/action-update-step/compare/v1...v2)
---
updated-dependencies:
- dependency-name: skills/action-update-step
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
---
.github/workflows/0-inicio.yml | 2 +-
.github/workflows/1-crea-primer-workflow.yml | 2 +-
.github/workflows/2-conoce-triggers.yml | 2 +-
.github/workflows/3-aprende-expresiones.yml | 2 +-
.github/workflows/4-usa-contextos.yml | 2 +-
.github/workflows/5-uso-variables.yml | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/0-inicio.yml b/.github/workflows/0-inicio.yml
index ed5b1f4..af4a097 100644
--- a/.github/workflows/0-inicio.yml
+++ b/.github/workflows/0-inicio.yml
@@ -84,7 +84,7 @@ jobs:
# Update README to close and open
# and set STEP to '1'
- name: Actualizar a paso 1
- uses: skills/action-update-step@v1
+ uses: skills/action-update-step@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 0
diff --git a/.github/workflows/1-crea-primer-workflow.yml b/.github/workflows/1-crea-primer-workflow.yml
index ce1cab4..18e5e13 100644
--- a/.github/workflows/1-crea-primer-workflow.yml
+++ b/.github/workflows/1-crea-primer-workflow.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to '2'
- name: Actualizar a paso 2
- uses: skills/action-update-step@v1
+ uses: skills/action-update-step@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 1
diff --git a/.github/workflows/2-conoce-triggers.yml b/.github/workflows/2-conoce-triggers.yml
index daad349..a0532c2 100644
--- a/.github/workflows/2-conoce-triggers.yml
+++ b/.github/workflows/2-conoce-triggers.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to '3'
- name: Actualizar a paso 3
- uses: skills/action-update-step@v1
+ uses: skills/action-update-step@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 2
diff --git a/.github/workflows/3-aprende-expresiones.yml b/.github/workflows/3-aprende-expresiones.yml
index bb45a57..89e85b8 100644
--- a/.github/workflows/3-aprende-expresiones.yml
+++ b/.github/workflows/3-aprende-expresiones.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to '4'
- name: Actualizar a paso 4
- uses: skills/action-update-step@v1
+ uses: skills/action-update-step@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 3
diff --git a/.github/workflows/4-usa-contextos.yml b/.github/workflows/4-usa-contextos.yml
index f8966f6..2fc89d2 100644
--- a/.github/workflows/4-usa-contextos.yml
+++ b/.github/workflows/4-usa-contextos.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to '5'
- name: Actualizar a paso 5
- uses: skills/action-update-step@v1
+ uses: skills/action-update-step@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 4
diff --git a/.github/workflows/5-uso-variables.yml b/.github/workflows/5-uso-variables.yml
index a4a3b1f..dee3b55 100644
--- a/.github/workflows/5-uso-variables.yml
+++ b/.github/workflows/5-uso-variables.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to 'X'
- name: Actualizar a paso X
- uses: skills/action-update-step@v1
+ uses: skills/action-update-step@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 5
From ad449ccd590824aa4255d587c419250b36c71c90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Jos=C3=A9=20Torres?=
<43612178+JuanJTorres11@users.noreply.github.com>
Date: Thu, 10 Aug 2023 18:42:11 -0500
Subject: [PATCH 4/9] Revert "build(deps): bump skills/action-update-step from
1 to 2"
---
.github/workflows/0-inicio.yml | 2 +-
.github/workflows/1-crea-primer-workflow.yml | 2 +-
.github/workflows/2-conoce-triggers.yml | 2 +-
.github/workflows/3-aprende-expresiones.yml | 2 +-
.github/workflows/4-usa-contextos.yml | 2 +-
.github/workflows/5-uso-variables.yml | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/0-inicio.yml b/.github/workflows/0-inicio.yml
index af4a097..ed5b1f4 100644
--- a/.github/workflows/0-inicio.yml
+++ b/.github/workflows/0-inicio.yml
@@ -84,7 +84,7 @@ jobs:
# Update README to close and open
# and set STEP to '1'
- name: Actualizar a paso 1
- uses: skills/action-update-step@v2
+ uses: skills/action-update-step@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 0
diff --git a/.github/workflows/1-crea-primer-workflow.yml b/.github/workflows/1-crea-primer-workflow.yml
index 18e5e13..ce1cab4 100644
--- a/.github/workflows/1-crea-primer-workflow.yml
+++ b/.github/workflows/1-crea-primer-workflow.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to '2'
- name: Actualizar a paso 2
- uses: skills/action-update-step@v2
+ uses: skills/action-update-step@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 1
diff --git a/.github/workflows/2-conoce-triggers.yml b/.github/workflows/2-conoce-triggers.yml
index a0532c2..daad349 100644
--- a/.github/workflows/2-conoce-triggers.yml
+++ b/.github/workflows/2-conoce-triggers.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to '3'
- name: Actualizar a paso 3
- uses: skills/action-update-step@v2
+ uses: skills/action-update-step@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 2
diff --git a/.github/workflows/3-aprende-expresiones.yml b/.github/workflows/3-aprende-expresiones.yml
index 89e85b8..bb45a57 100644
--- a/.github/workflows/3-aprende-expresiones.yml
+++ b/.github/workflows/3-aprende-expresiones.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to '4'
- name: Actualizar a paso 4
- uses: skills/action-update-step@v2
+ uses: skills/action-update-step@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 3
diff --git a/.github/workflows/4-usa-contextos.yml b/.github/workflows/4-usa-contextos.yml
index 2fc89d2..f8966f6 100644
--- a/.github/workflows/4-usa-contextos.yml
+++ b/.github/workflows/4-usa-contextos.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to '5'
- name: Actualizar a paso 5
- uses: skills/action-update-step@v2
+ uses: skills/action-update-step@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 4
diff --git a/.github/workflows/5-uso-variables.yml b/.github/workflows/5-uso-variables.yml
index dee3b55..a4a3b1f 100644
--- a/.github/workflows/5-uso-variables.yml
+++ b/.github/workflows/5-uso-variables.yml
@@ -66,7 +66,7 @@ jobs:
# Update README to close and open
# and set STEP to 'X'
- name: Actualizar a paso X
- uses: skills/action-update-step@v2
+ uses: skills/action-update-step@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 5
From 8e4ba544a983407c3752256e04061c274f9938ab Mon Sep 17 00:00:00 2001
From: xlexferr02
Date: Sat, 18 Jan 2025 18:49:54 -0500
Subject: [PATCH 5/9] =?UTF-8?q?A=C3=B1adir=20workflow=20para=20ejecutar=20?=
=?UTF-8?q?hola=5Fmundo.py?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.github/dependabot.yml | 0
.github/reto_1/hola_mundo.py | 5 +++++
.github/script/STEP | 0
.github/workflows/ hola-mundo.yml | 8 ++++++++
.github/workflows/0-inicio.yml | 0
.github/workflows/1-crea-primer-workflow.yml | 0
.github/workflows/2-conoce-triggers.yml | 0
.github/workflows/3-aprende-expresiones.yml | 0
.github/workflows/4-usa-contextos.yml | 0
.github/workflows/5-uso-variables.yml | 0
.github/workflows/hola-mundo.yml | 12 ++++++++++++
.gitignore | 0
LICENSE | 0
README.md | 0
14 files changed, 25 insertions(+)
mode change 100644 => 100755 .github/dependabot.yml
create mode 100644 .github/reto_1/hola_mundo.py
mode change 100644 => 100755 .github/script/STEP
create mode 100644 .github/workflows/ hola-mundo.yml
mode change 100644 => 100755 .github/workflows/0-inicio.yml
mode change 100644 => 100755 .github/workflows/1-crea-primer-workflow.yml
mode change 100644 => 100755 .github/workflows/2-conoce-triggers.yml
mode change 100644 => 100755 .github/workflows/3-aprende-expresiones.yml
mode change 100644 => 100755 .github/workflows/4-usa-contextos.yml
mode change 100644 => 100755 .github/workflows/5-uso-variables.yml
create mode 100644 .github/workflows/hola-mundo.yml
mode change 100644 => 100755 .gitignore
mode change 100644 => 100755 LICENSE
mode change 100644 => 100755 README.md
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
old mode 100644
new mode 100755
diff --git a/.github/reto_1/hola_mundo.py b/.github/reto_1/hola_mundo.py
new file mode 100644
index 0000000..d9446b4
--- /dev/null
+++ b/.github/reto_1/hola_mundo.py
@@ -0,0 +1,5 @@
+def hello_world():
+ print("Hello World")
+
+if __name__ == '__main__':
+ hello_world()
diff --git a/.github/script/STEP b/.github/script/STEP
old mode 100644
new mode 100755
diff --git a/.github/workflows/ hola-mundo.yml b/.github/workflows/ hola-mundo.yml
new file mode 100644
index 0000000..d24564d
--- /dev/null
+++ b/.github/workflows/ hola-mundo.yml
@@ -0,0 +1,8 @@
+name: hola-mundo
+on: [push]
+jobs:
+ hola-mundo:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Hola mundo
+ run: python reto_1/hola_mundo.py
diff --git a/.github/workflows/0-inicio.yml b/.github/workflows/0-inicio.yml
old mode 100644
new mode 100755
diff --git a/.github/workflows/1-crea-primer-workflow.yml b/.github/workflows/1-crea-primer-workflow.yml
old mode 100644
new mode 100755
diff --git a/.github/workflows/2-conoce-triggers.yml b/.github/workflows/2-conoce-triggers.yml
old mode 100644
new mode 100755
diff --git a/.github/workflows/3-aprende-expresiones.yml b/.github/workflows/3-aprende-expresiones.yml
old mode 100644
new mode 100755
diff --git a/.github/workflows/4-usa-contextos.yml b/.github/workflows/4-usa-contextos.yml
old mode 100644
new mode 100755
diff --git a/.github/workflows/5-uso-variables.yml b/.github/workflows/5-uso-variables.yml
old mode 100644
new mode 100755
diff --git a/.github/workflows/hola-mundo.yml b/.github/workflows/hola-mundo.yml
new file mode 100644
index 0000000..01d0b00
--- /dev/null
+++ b/.github/workflows/hola-mundo.yml
@@ -0,0 +1,12 @@
+name: hola-mundo
+on:
+ push:
+ branches: [ "aprendiendo-github-actions" ]
+jobs:
+ hola-mundo:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Hola mundo
+ run: python .github/reto_1/hola_mundo.py
diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/LICENSE b/LICENSE
old mode 100644
new mode 100755
diff --git a/README.md b/README.md
old mode 100644
new mode 100755
From ff6b24b7456868ea075673684ea509ffabf35451 Mon Sep 17 00:00:00 2001
From: xlexferr02
Date: Sat, 18 Jan 2025 19:34:53 -0500
Subject: [PATCH 6/9] Actualiza mensaje en hola_mundo.py
---
.github/reto_1/hola_mundo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
mode change 100644 => 100755 .github/reto_1/hola_mundo.py
diff --git a/.github/reto_1/hola_mundo.py b/.github/reto_1/hola_mundo.py
old mode 100644
new mode 100755
index d9446b4..003f6c8
--- a/.github/reto_1/hola_mundo.py
+++ b/.github/reto_1/hola_mundo.py
@@ -1,5 +1,5 @@
def hello_world():
- print("Hello World")
+ print("Hello Alex Ferreira")
if __name__ == '__main__':
hello_world()
From ef582767f6eab1033690ca98753de933cb07f1ee Mon Sep 17 00:00:00 2001
From: xlexferr02
Date: Sat, 18 Jan 2025 19:58:07 -0500
Subject: [PATCH 7/9] Corrige ruta del script en el workflow
---
.github/workflows/hola-mundo.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
mode change 100644 => 100755 .github/workflows/hola-mundo.yml
diff --git a/.github/workflows/hola-mundo.yml b/.github/workflows/hola-mundo.yml
old mode 100644
new mode 100755
index 01d0b00..0225b20
--- a/.github/workflows/hola-mundo.yml
+++ b/.github/workflows/hola-mundo.yml
@@ -9,4 +9,4 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Hola mundo
- run: python .github/reto_1/hola_mundo.py
+ run: python reto_1/hola_mundo.py
From 86c6dc98181966654e97dc11c9a294cd6dbf8ca4 Mon Sep 17 00:00:00 2001
From: xlexferr02
Date: Sat, 18 Jan 2025 20:01:42 -0500
Subject: [PATCH 8/9] Actualiza mensaje en hola_mundo.py
---
.github/reto_1/hola_mundo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/reto_1/hola_mundo.py b/.github/reto_1/hola_mundo.py
index 003f6c8..3df37c5 100755
--- a/.github/reto_1/hola_mundo.py
+++ b/.github/reto_1/hola_mundo.py
@@ -1,5 +1,5 @@
def hello_world():
- print("Hello Alex Ferreira")
+ print("Hello Alex Ferreira")
if __name__ == '__main__':
hello_world()
From 7835abe5ca05ce961c584dbcaa315dcb0a5663c8 Mon Sep 17 00:00:00 2001
From: xlexferr02
Date: Sat, 18 Jan 2025 23:06:33 -0500
Subject: [PATCH 9/9] Corrige la ruta del script en el workflow
---
.github/workflows/hola-mundo.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/hola-mundo.yml b/.github/workflows/hola-mundo.yml
index 0225b20..f499ec6 100755
--- a/.github/workflows/hola-mundo.yml
+++ b/.github/workflows/hola-mundo.yml
@@ -9,4 +9,4 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Hola mundo
- run: python reto_1/hola_mundo.py
+ run: python .github/reto_1/hola_mundo.py
\ No newline at end of file