Resume


O Que É GitHub Actions ?

GitHub Actions is a flexible way to automate nearly every aspect of your team’s software workflow. You can automate testing, continuously deploy, review code, manage issues and pull requests, and much more.

Atributos Básicos

AtributoO que ele é?
namePara nomear o workflow
onquando executar o workflow
permissionda permissão para operar no repositório
runs-onrunner para o job
name: Post welcome comment
on:
  pull_request:
    types: [opened]
permissions:
  pull-requests: write
jobs:
  build:
    name: Post welcome comment
    runs-on: ubuntu-latest

Jobs

What is a job?: A job is a set of steps in a workflow that execute on the same runner (a runner is a server that runs your workflows when triggered). Workflows have jobs, and jobs have steps. Steps are executed in order and are dependent on each other. To read more about jobs, see “Jobs”.

Your workflow contains one or more jobs which can run in sequential order or in parallel. Each job will run inside its own virtual machine runner, or inside a container, and has one or more steps that either run a script that you define or run an action, which is a reusable extension that can simplify your workflow.Read more

  • You can configure a job’s dependencies with other jobs; by default, jobs have no dependencies and run in parallel.
  • You can also use a matrix to run the same job multiple times, each with a different combination of variables—like operating systems or language versions.

Actions

As actions são um conjunto de jobs que é reutilizavel dentro de um workflow.

References and Footnotes

https://docs.github.com/pt/actions

https://www.youtube.com/watch?v=Xwpi0ITkL3U

https://docs.github.com/en/actions/get-started/understand-github-actions#understanding-the-workflow-file