github actions
pull_request event 로 activity_type 살펴보기
wefree
2022. 2. 27. 16:57
문제
event 에 대한 github actions 문서를 보면 push 의 경우에는 딱히 더 설정할 activity 가 없지만, pull_request 는 activity 를 추가로 설정할 수 있다. 예제 코드를 작성해 보자
코드
name: Pull Request Action
on:
push:
pull_request:
types: [opened, reopend, closed]
jobs:
run-github-actions:
runs-on: ubuntu-latest
steps:
- name: List Files
run: |
pwd
ls -a