Member-only story

Summary of Practical Examples With Github-Actions

Maciej
2 min readOct 11, 2021

--

What is GitHub Actions?

Easily automate all software workflows with world-class CI / CD. You can build, test, and deploy code directly from GitHub to get code review, branch management, and problem triage to work the way you want.

Practical examples

  • Environmental variables (Global)
  • Environmental variables (In step)
  • Multiple command simplification
  • Specify subfolder
  • Action trigger condition (Specified folder)
  • Action trigger condition (Other than the specified folder)
  • Execution order of multiple jobs
  • Workflow execution between repositories
  • Send notification to Slack

Environmental variables (Global)

on:
push:
branches:
- main
env:
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }}

Environmental variables (In step)

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: install
run: yarn install
env…

--

--

Maciej
Maciej

Written by Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

No responses yet