jm_p_op
git action - jobs 본문
- jobs에 하위 목록이 작업이고 name 사용하면 이름을 바꿀수있음
- 기본적으로 병렬시행, needs사용을 통해 직렬로 바꿀수 있다.
- needs 에는 jobs 하위목록 이름을 넣는데 (name 정의한거 안됨)
- job의 순서에 상관없이 작성 가능
name: PR_template
on:
pull_request:
branches: [main,develop]
type: [closed]
jobs:
build1:
needs: build2
name: Build(1)
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
- name: hi
run: |
echo "${{secrets.ENV}}"
echo "????"
echo "merge"
python -m test
build2:
name: Build(2)
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
- name: hi
run: |
echo "${{secrets.ENV}}"
echo "pr.merge"
echo "merge2"
python -m test
'코딩 > github' 카테고리의 다른 글
git pull_request_template multiple (0) | 2024.03.31 |
---|---|
git pull_request_template (1) | 2024.03.31 |
git action - pull_request (0) | 2024.03.30 |
git-action : PRchange, re-run all jobs (0) | 2024.03.26 |
branch rule - git action/status checks before merge (0) | 2024.01.25 |