github actions

Continue on Error & Timeout

wefree 2022. 3. 6. 22:01

특정 step 에서 에러가 발생하더라도, continue-on-error 를 사용해 해당 에러를 무시하고 다음 step 으로 진행할 수 있도록 해 보자. 참고로 github actions functions, if key and job status 에서처럼 if: failure() 를 사용하면 해당 step 만 실패일 경우 실행된다.그리고 step 마다 timeout-minutes 를 사용해 timeout 을 설정할 수도 있다.

 

jobs:
  run-shell-command:
    runs-on: ubuntu-latest
    timeout-minutes: 360
    steps:
      - name: echo a string
        run: echo "Hello World"
        continue-on-error: true
      - name: ...

 

참고: https://www.udemy.com/course/github-actions