You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
아래는 GitHub Docs - Quickstart for GitHub Actions에 나와있는 예제.
name: GitHub Actions Demoon: [push]jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-lateststeps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository codeuses: actions/checkout@v2
- run: echo "💡 The ${{ github.repository }} 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 repositoryrun: | ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
# push 또는 pull_request 이벤트가 발생할 때 트리거on: [push, pull_request]
Using multiple events with activity types or configuration
on:
# main 브랜치에 push 이벤트 발생 시 트리거push:
branches:
- mainpull_request:
branches:
- main
jobs
workflow 는 순차적 or 병렬도 실행되는 하나 이상의 작업으로 구성됨.
기본적으로 병렬 작업.
# 보기 쉽도록 위의 예제를 떼어내 가져왔다jobs:
Explore-GitHub-Actions: # 작업 이름runs-on: ubuntu-latest # 작업을 실행할 machine typesteps: # 작업의 각 단계
- run: # command 실행
- name: # 표시될 이름uses: # 사용할 액션 (GitHub 마켓플레이스에 제공된 것이나 현재 repo 에서 만든 것 등)