a-lloma / github-actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-actions



diferentes shells

// utilizar um runner com um shell diferente

S.O. suportado valor
Todos bash
Todos pwsh
Todos python
Linux/macOS sh
windows powershell



marketplace de actions

utilizadas https://github.com/marketplace/actions/upload-a-build-artifact https://github.com/marketplace/actions/download-a-build-artifact



introdução ao github actions

/older github-actions-demo.yml // arquivo inicial demonstração github image

primeiro.yml // criando a primeira action image

shell.yml // testando diferentes terminais image

./ upload-download.yml // final: conexão entre jobs e compartilhamento de informações com o uso de actions do marketplace4 image



events

link referência: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
exemplo de PR https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request


ON - schedule evento agendado permite acionar um workflow em um horário agendado

12345 1-minutos (0-59) 2- horas (0-23) 3 dias do mes (1-31) mês (1-12 ou JAN-DEC) dias da semana (0-6 ou SUN-SAT)

┌───────────── minute (0 - 59)
│ ┌───────────── hour (0 - 23)
│ │ ┌───────────── day of the month (1 - 31)
│ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
│ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
* * * * *

https://crontab.guru/every-5-minutes
*/5 * * * *

About