SuMineLee / OES_L2DSR

0 stars 0 forks source link

Follw the Learning Path 01 #50

Closed SuMineLee closed 2 years ago

SuMineLee commented 2 years ago

Follow the Learning Path

  1. Automate development tasks by using GutHub Actions.
SuMineLee commented 2 years ago

[2/7]

Actions ; 다른 툴을 실행시키는 yml 스크립트 inputs : MY_NAME : workflow 명이 들어옴 runs : uses : 실행할 프로그램 image : 이미지 경로 branding : 게시 시 식별 저보.

Workflow는 지정한 Actions를 실행시키는 플로우

SuMineLee commented 2 years ago

Workflow on : Schedule cron, triger ${{github.ref}}, API(workflow_dispatch), webhook(repository_despatch)

  1. 스케줄 설정 on : schedule : -**cron** : */15 13 1 May Mon
  2. 트리거 설정 on: push:
  3. workflow_dispatch + 실행할 브랜치 + input 요소 on : workflow_dispatch: -inputs : logLevel : description : 'Log level' require : true default : 'warning' tags : description : 'Test Scenario Tags'
  4. API/ Webhook : 특정 타입 지정 가능 API POST : body = repository_dispatch : types : [opened. deleted] check_run: types : [required , requested_action]
SuMineLee commented 2 years ago

Workflow 상황 설정 ; .github/workflow/main.yml

  1. 조건 설정 가능 name : on : push jobs : prod-check: if : ${{github.ref}} =='refs/heads/main' runs-on: ubunti-latest steps : action 실행 - action.yml
  2. 비활성화 및 삭제
    DELETE / ACtions 탭
  3. Organizaition template 설정 가능 - Org repo // repo - ACtions - new workflow
  4. 특정 버전 사용 가능. actions/test@1.2
SuMineLee commented 2 years ago

Did you do the exercise?

SuMineLee commented 2 years ago

https://github.com/SuMineLee/hello-github-actions

my Exercise Links