<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
		<id>https://1984.lsi.us.es/wiki-egc/index.php?action=history&amp;feed=atom&amp;title=GithubActions_2022</id>
		<title>GithubActions 2022 - Historial de revisiones</title>
		<link rel="self" type="application/atom+xml" href="https://1984.lsi.us.es/wiki-egc/index.php?action=history&amp;feed=atom&amp;title=GithubActions_2022"/>
		<link rel="alternate" type="text/html" href="https://1984.lsi.us.es/wiki-egc/index.php?title=GithubActions_2022&amp;action=history"/>
		<updated>2026-04-26T23:10:19Z</updated>
		<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://1984.lsi.us.es/wiki-egc/index.php?title=GithubActions_2022&amp;diff=9423&amp;oldid=prev</id>
		<title>Ajramirez: /* Nociones básicas sobre GitHub Actions */</title>
		<link rel="alternate" type="text/html" href="https://1984.lsi.us.es/wiki-egc/index.php?title=GithubActions_2022&amp;diff=9423&amp;oldid=prev"/>
				<updated>2022-10-11T08:00:34Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Nociones básicas sobre GitHub Actions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='es'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisión del 08:00 11 oct 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot; &gt;Línea 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# '''workflow''' el cuál se dispara al recibir un evento de GitHub. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# '''workflow''' el cuál se dispara al recibir un evento de GitHub. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Estos '''eventos''' puede ser desde un push hasta la creación de una issue. Cada workflow permite correr jobs.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Estos '''eventos''' puede ser desde un push hasta la creación de una issue. Cada workflow permite correr jobs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Los '''jobs'' son secuencias de pasos. Cada uno de estos jobs se ejecutan dentro de un entorno llamado runner.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Los '''jobs&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'&lt;/ins&gt;'' son secuencias de pasos. Cada uno de estos jobs se ejecutan dentro de un entorno llamado runner.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Los '''runners''' son máquinas virtuales que se levantan para cada job. Todos los pasos de un job se ejecutan dentro del mismo runner, por lo que comparten recursos como los archivos y las carpetas.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Los '''runners''' son máquinas virtuales que se levantan para cada job. Todos los pasos de un job se ejecutan dentro del mismo runner, por lo que comparten recursos como los archivos y las carpetas.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Los '''pasos''' de un job pueden ser simples instrucciones de shell, o utilizar funciones más concretas llamadas '''actions''' como, por ejemplo, hacer un clone.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Los '''pasos''' de un job pueden ser simples instrucciones de shell, o utilizar funciones más concretas llamadas '''actions''' como, por ejemplo, hacer un clone.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ajramirez</name></author>	</entry>

	<entry>
		<id>https://1984.lsi.us.es/wiki-egc/index.php?title=GithubActions_2022&amp;diff=9412&amp;oldid=prev</id>
		<title>Ajramirez: Página creada con «== Nociones básicas sobre GitHub Actions== Dentro de cada .yml de la carpeta .github/worflows se define un: # '''workflow''' el cuál se dispara al recibir un evento de Gi...»</title>
		<link rel="alternate" type="text/html" href="https://1984.lsi.us.es/wiki-egc/index.php?title=GithubActions_2022&amp;diff=9412&amp;oldid=prev"/>
				<updated>2022-10-09T15:29:17Z</updated>
		
		<summary type="html">&lt;p&gt;Página creada con «== Nociones básicas sobre GitHub Actions== Dentro de cada .yml de la carpeta .github/worflows se define un: # &amp;#039;&amp;#039;&amp;#039;workflow&amp;#039;&amp;#039;&amp;#039; el cuál se dispara al recibir un evento de Gi...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Nociones básicas sobre GitHub Actions==&lt;br /&gt;
Dentro de cada .yml de la carpeta .github/worflows se define un:&lt;br /&gt;
# '''workflow''' el cuál se dispara al recibir un evento de GitHub. &lt;br /&gt;
# Estos '''eventos''' puede ser desde un push hasta la creación de una issue. Cada workflow permite correr jobs.&lt;br /&gt;
# Los '''jobs'' son secuencias de pasos. Cada uno de estos jobs se ejecutan dentro de un entorno llamado runner.&lt;br /&gt;
# Los '''runners''' son máquinas virtuales que se levantan para cada job. Todos los pasos de un job se ejecutan dentro del mismo runner, por lo que comparten recursos como los archivos y las carpetas.&lt;br /&gt;
# Los '''pasos''' de un job pueden ser simples instrucciones de shell, o utilizar funciones más concretas llamadas '''actions''' como, por ejemplo, hacer un clone.&lt;br /&gt;
&lt;br /&gt;
El siguiente workflow tiene como nombre 'GitHub Actions Demo' y se dispara al hacer un push. Únicamente define un job llamado 'Explore-GitHub-Actions' dentro de un runner de tipo ubuntu-latest. Casi todos los pasos son de tipo shell salvo uno que utiliza la acción actions/checkout@v1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;YAML&amp;quot;&amp;gt;&lt;br /&gt;
name: GitHub Actions Demo&lt;br /&gt;
on: [push]&lt;br /&gt;
jobs:&lt;br /&gt;
  Explore-GitHub-Actions:&lt;br /&gt;
    runs-on: ubuntu-latest&lt;br /&gt;
    steps:&lt;br /&gt;
      - run: echo &amp;quot;🎉 The job was automatically triggered by a ${{ github.event_name }} event.&amp;quot;&lt;br /&gt;
      - run: echo &amp;quot;🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!&amp;quot;&lt;br /&gt;
      - run: echo &amp;quot;🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}.&amp;quot;&lt;br /&gt;
      - name: Check out repository code&lt;br /&gt;
        uses: actions/checkout@v1&lt;br /&gt;
      - run: echo &amp;quot;💡 The ${{ github.repository }} repository has been cloned to the runner.&amp;quot;&lt;br /&gt;
      - run: echo &amp;quot;🖥️  The workflow is now ready to test your code on the runner.&amp;quot;&lt;br /&gt;
      - name: List files in the repository&lt;br /&gt;
        run: |&lt;br /&gt;
          ls ${{ github.workspace }}&lt;br /&gt;
      - run: echo &amp;quot;🍏 This job's status is ${{ job.status }}.&amp;quot;&lt;br /&gt;
      - name: Contains expresion in a step&lt;br /&gt;
        run: echo &amp;quot;Is this branch master or develop? ${{ contains('refs/heads/master refs/heads/develop',github.ref)}}&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Añade un archivo con este contenido a tu proyecto en GitHub y comprueba su estado en la pestaña Actions:&lt;br /&gt;
* ¿Cuántos Worflows, jobs, steps se lanzan?&lt;br /&gt;
* ¿Entiendes todo lo que hacen las expresiones ${{ &amp;lt;expresion&amp;gt; }}?&lt;br /&gt;
Para consultar la lista completa de expressiones, visita este [[https://docs.github.com/en/actions/learn-github-actions/expressions  link]].&lt;br /&gt;
&lt;br /&gt;
Para consultar la lista completa de contextos (e.g., github.&amp;lt;&amp;gt;, job.&amp;lt;&amp;gt; o runner.&amp;lt;&amp;gt;), visita este otro [[https://docs.github.com/en/actions/learn-github-actions/contexts link]].&lt;br /&gt;
&lt;br /&gt;
Para consultar la lista completa de acciones, visita el [[https://github.com/marketplace?type=actions link]].&lt;/div&gt;</summary>
		<author><name>Ajramirez</name></author>	</entry>

	</feed>