이메일: [email protected]

코드: https://github.com/intelliguy

홈페이지: https://intelliguy.github.io/


원본: https://docs.github.com/en/free-pro-team@latest/actions

What is GitHub Actions

Quick Start

Steps

  1. 대상 저장소에 .github/workflow 디렉토리를 만들고 superliter.yml로 저장 (하단블록참조, GitHub 웹페이지에서)
  2. commit 페이지에서 워크플로우 실행을 위해 맨하단의 "Create a new branch for this commit and start a pull request"를 체크하고 "Propose new file"로 PR 생성
  3. 이렇게 하면 action이 실행하고 저장소 페이지의 action 탭에서 수행내역을 확인할 수 있음
name: Super-Linter

# Run this workflow every time a new commit pushed to your repository
on: push

jobs:
  # Set the job key. The key is displayed as the job name
  # when a job name is not provided
  super-lint:
    # Name the Job
    name: Lint code base
    # Set the type of machine to run on
    runs-on: ubuntu-latest

    steps:
      # Checks out a copy of your repository on the ubuntu-latest machine
      - name: Checkout code
        uses: actions/checkout@v2

      # Runs the Super-Linter action
      - name: Run Super-Linter
        uses: github/super-linter@v3
        env:
          DEFAULT_BRANCH: main
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/96346a08-d894-44dd-a255-ee7e65392321/commit-workflow-file.png

그외 사용할수 있는 다양한 action들