branch 다가 하면 remote 에 태그 생겨서 그 브랜치 더블 태그되서 푸쉬 못한다
그니까 태그에다가 trigger 무조건 걸어야함 → 캐시 따로 workflow
- pull_request
- 거기다가 풀리 넣어진 브랜치에서 작동함
- pr 받은 놈은 push 로도 작동
GitHub Actions의 pull_request_target과 workflow_run 이벤트 :: Outsider's Dev Story
GitHub Actions에서 워크플로우가 트리거되는 조건을 걸 수 있다. 예를 들어 GitHub Actions의 워크플로우에서 다음과 같이 on을 지정하면 해당 저장소에서 push나 pull_request 이벤트가 발생했을 때 워크플로우가 시작된다. on: [push, pull_request] 보통 이 두 이벤트 혹은 push 만을 사용하지만, 협업이 많은 저장소에서는 Pull Request에서 약간의 문제가 있다. 풀 리퀘스트를 만드는 방법에는 2가지가 있다고 할 수 있다.
https://blog.outsider.ne.kr/1541
Workflow syntax for GitHub Actions
Workflow files use YAML syntax, and must have either a .yml or .yaml file extension. If you're new to YAML and want to learn more, see " Learn YAML in five minutes." You must store workflow files in the .github/workflows directory of your repository. The name of your workflow.
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
