[2] Github Action 테스트(bash command)
1. .github/workflows/simple.yml 생성

2. simple.yml 정의
bash 명령어를 작동시켜보자.
run-shell-command 라는 job은 ubuntu-latest라는 가상 머신 기반으로 작동되며, echo 명령어가 사용된다.
name: Shell Commands
on: [push, pull_request]
jobs:
  run-shell-command:
    runs-on: ubuntu-latest
    steps:
      - name: echo a string
        run: echo "Hello, world!"
      - name: multiline script
        run: |
          git --version
          python --version3. github action 결과 확인하기
1) 성공시

2) 실패시

아래와 같이, 이메일도 받을 수가 있다.
(github -> settings -> notification 설정)

4. workflow의 로그 정보 자세히 보는 법
1) Settings -> Secrets

2) secret 값 설정하기

출처: https://docs.github.com/en/actions/managing-workflow-runs/enabling-debug-logging



위와 같이 셋팅한 결과, 아래 그림과 같이 상세한 디버깅 정보를 확인할 수 있다.

Author And Source
이 문제에 관하여([2] Github Action 테스트(bash command)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@khh180cm/2-Github-Action-테스트저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)