Workflow 파일 구조

  1. 워크 플로우는 저장소 root 디렉토리의 .github/workflows 디렉토리에 저장. (.yaml, .yml 파일)

  2. 워크 플로우는 “Job”과, Job내부의 개별 task들을 수행하는 step들로 구성됩니다. image

  3. 워크 플로우는 GitHub event에 의해 시작되거나, 외부 event 또는 스케쥴에 맞춰 시작 가능 image

  4. 워크 플로우는 하나이상의 job을 포함하고 있으며, 각 job은 개별적으로 독립적인 ‘러너’에서 실행됩니다.(하나의 ‘러너’는 동시에 ‘한개’의 Job만을 수행할 수 있습니다)

  5. 워크플로우내의 Job들은 기본적으로 “동시”에 병렬로 실행되나, Job내의 ‘Step’들은 “순차적”으로 실행됩니다. image

  6. 저장소의 admin 권한 및 쓰기권한이상의 사용자가 Actions를 생성하고 검토하고 수정할 수 있음
    • Actions 탭 image
    • 왼쪽 사이드바에서 확인하고 싶은 워크플로우 image image image
  7. 워크 플로우 파일 기본 예제
name: GitHub Actions Demo
on: [push]
jobs:
  Explore-GitHub-Actions:
    runs-on: ubuntu-latest
    steps:
      - run: echo "🎉 The job was automatically triggered by a $ event."
      
      - run: echo "🐧 This job is now running on a $ server hosted by GitHub!"
      
      - run: echo "🔎 The name of your branch is $ and your repository is $."
      
      - name: Check out repository code
        uses: actions/checkout@v2
      
      - run: echo "💡 The $ repository has been cloned to the runner."
      
      - run: echo "🖥️ The workflow is now ready to test your code on the runner."
      
      - name: List files in the repository
        run: |
          ls $
      
      - run: echo "🍏 This job's status is $."

GitHub Enterprise의 다양한 기능설명을 위한 웹페이지입니다.

Last Modified Date: $LAST_MODIFIED_DATE$