From 29d30075dd819daaac1ac851940cc33e98369c43 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 15:03:02 +0900 Subject: [PATCH 01/76] add push.yaml --- .github/workflows/push.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/workflows/push.yaml diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 000000000..9db6f7e5f --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,9 @@ +name: push-workflow # 액션창에서 표현될 명칭 (생략가능) +on: push #어떤 이벤트로 인해 깃허브액션을 트리거 시킬지 + +jobs: # 실행시킬 job의 집합 (필수값) + push-job: + runs-on: ubuntu-latest #job 안에 실행시킬 runner 지정 + steps: # step의 집합 + - name: step1 # step의 이름 (생략가능) + run: echo hello world \ No newline at end of file From 7ba5e8484110168cf81c7574efe7ac1c919a6454 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 15:06:34 +0900 Subject: [PATCH 02/76] add push.yaml --- .github/workflows/push.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 9db6f7e5f..8d2c37b04 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -6,4 +6,8 @@ jobs: # 실행시킬 job의 집합 (필수값) runs-on: ubuntu-latest #job 안에 실행시킬 runner 지정 steps: # step의 집합 - name: step1 # step의 이름 (생략가능) - run: echo hello world \ No newline at end of file + run: echo hello world + - name: step2 + run: | # | 사용시 멀티라인 커멘드 사용가능 + echo hello world + echo github action \ No newline at end of file From 35edae81108f8d3044c8f5712d1e1d1cdbd53315 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 15:08:36 +0900 Subject: [PATCH 03/76] add push.yaml --- .github/workflows/{ => part1}/push.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ => part1}/push.yaml (100%) diff --git a/.github/workflows/push.yaml b/.github/workflows/part1/push.yaml similarity index 100% rename from .github/workflows/push.yaml rename to .github/workflows/part1/push.yaml From 2db2254ba495787389466f375ea941956dde4e6e Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 15:12:23 +0900 Subject: [PATCH 04/76] add pull_request.yaml --- .github/workflows/pull_request.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/pull_request.yaml diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 000000000..c462033ba --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,13 @@ +name: pull-request-workflow +on: pull_request + +jobs: + pull-request-job: + runs-on: ubuntu-latest + steps: + - name: step1 + run: echo hello world + - name: step2 + run: | + echo hello world + echo github action \ No newline at end of file From aeba2d8b5b4f574b01b4bd90cb9244e8e275cde8 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 15:25:42 +0900 Subject: [PATCH 05/76] add pull_request.yaml --- .github/workflows/pull_request.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index c462033ba..7afac66a6 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -1,5 +1,7 @@ name: pull-request-workflow -on: pull_request +on: + pull_request: + types: [opened] # pull_request가 생성된 시점에만 업데이트 해주고 싶을때 jobs: pull-request-job: From 6fd27b124141db4240188bdee8a9e3d2c8721d96 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 15:36:20 +0900 Subject: [PATCH 06/76] add issue.yaml --- .github/workflows/issue.yaml | 15 +++++++++++++++ .github/workflows/{ => part1}/pull_request.yaml | 0 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/issue.yaml rename .github/workflows/{ => part1}/pull_request.yaml (100%) diff --git a/.github/workflows/issue.yaml b/.github/workflows/issue.yaml new file mode 100644 index 000000000..b15e0f128 --- /dev/null +++ b/.github/workflows/issue.yaml @@ -0,0 +1,15 @@ +name: issue-workflow +on: + issues: + types: [opened] + +jobs: + pull-request-job: + runs-on: ubuntu-latest + steps: + - name: step1 + run: echo hello world + - name: step2 + run: | + echo hello world + echo github action diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/part1/pull_request.yaml similarity index 100% rename from .github/workflows/pull_request.yaml rename to .github/workflows/part1/pull_request.yaml From 14f08e121b70206929a5c0c94c7e19e54946dd28 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 15:38:16 +0900 Subject: [PATCH 07/76] add issue.yaml --- .github/workflows/issue.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue.yaml b/.github/workflows/issue.yaml index b15e0f128..8537450ed 100644 --- a/.github/workflows/issue.yaml +++ b/.github/workflows/issue.yaml @@ -4,7 +4,7 @@ on: types: [opened] jobs: - pull-request-job: + issue-job: runs-on: ubuntu-latest steps: - name: step1 From c699fe725a01f7e8be7c69e499dcc6c2a4a2c722 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 15:50:58 +0900 Subject: [PATCH 08/76] add issue_comment.yaml --- .github/workflows/issue_comment.yaml | 17 +++++++++++++++++ .github/workflows/{ => part1}/issue.yaml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/issue_comment.yaml rename .github/workflows/{ => part1}/issue.yaml (82%) diff --git a/.github/workflows/issue_comment.yaml b/.github/workflows/issue_comment.yaml new file mode 100644 index 000000000..bf6f86da3 --- /dev/null +++ b/.github/workflows/issue_comment.yaml @@ -0,0 +1,17 @@ +name: issue-comment-workflow +on: issue_comment + +jobs: + pr-comment: + if: ${{ git.hub.event.issue.pull_request }} + runs-on: ubuntu-latest + steps: + - name: pr comment + run: echo ${{ git.hub.event.issue.pull_request }} + + issue-comment: + if: ${{ !git.hub.event.issue.pull_request }} + runs-on: ubuntu-latest + steps: + - name: issue comment + run: echo ${{ git.hub.event.issue.pull_request }} diff --git a/.github/workflows/issue.yaml b/.github/workflows/part1/issue.yaml similarity index 82% rename from .github/workflows/issue.yaml rename to .github/workflows/part1/issue.yaml index 8537450ed..5bbda9497 100644 --- a/.github/workflows/issue.yaml +++ b/.github/workflows/part1/issue.yaml @@ -4,7 +4,7 @@ on: types: [opened] jobs: - issue-job: + issue-job: # 디폴트 브랜치에서만 트리거됨 runs-on: ubuntu-latest steps: - name: step1 From 9c01b60f72073e69e498a215b8998d15a81fdfbd Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 15:58:47 +0900 Subject: [PATCH 09/76] add issue_comment.yaml --- .github/workflows/issue_comment.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/issue_comment.yaml b/.github/workflows/issue_comment.yaml index bf6f86da3..155a9a6be 100644 --- a/.github/workflows/issue_comment.yaml +++ b/.github/workflows/issue_comment.yaml @@ -3,15 +3,15 @@ on: issue_comment jobs: pr-comment: - if: ${{ git.hub.event.issue.pull_request }} + if: ${{ github.event.issue.pull_request }} runs-on: ubuntu-latest steps: - name: pr comment - run: echo ${{ git.hub.event.issue.pull_request }} + run: echo ${{ github.event.issue.pull_request }} issue-comment: - if: ${{ !git.hub.event.issue.pull_request }} + if: ${{ !github.event.issue.pull_request }} runs-on: ubuntu-latest steps: - name: issue comment - run: echo ${{ git.hub.event.issue.pull_request }} + run: echo ${{ github.event.issue.pull_request }} From d324da5c1405b64255b640be29e656b94d8120ec Mon Sep 17 00:00:00 2001 From: heesun <76512936+heesunkimm@users.noreply.github.com> Date: Sat, 26 Oct 2024 15:59:21 +0900 Subject: [PATCH 10/76] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea85d664a..f794ef38f 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# github-actions-setting \ No newline at end of file +# github-actions-setting 1 From 76c337f20abb080ef712cc861c1162bc2295a221 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 16:16:47 +0900 Subject: [PATCH 11/76] workflow-dispatch.yaml --- .../workflows/{ => part1}/issue_comment.yaml | 0 .github/workflows/part1/schedule.yaml | 11 +++++++ .github/workflows/workflow_dispatch.yaml | 33 +++++++++++++++++++ 3 files changed, 44 insertions(+) rename .github/workflows/{ => part1}/issue_comment.yaml (100%) create mode 100644 .github/workflows/part1/schedule.yaml create mode 100644 .github/workflows/workflow_dispatch.yaml diff --git a/.github/workflows/issue_comment.yaml b/.github/workflows/part1/issue_comment.yaml similarity index 100% rename from .github/workflows/issue_comment.yaml rename to .github/workflows/part1/issue_comment.yaml diff --git a/.github/workflows/part1/schedule.yaml b/.github/workflows/part1/schedule.yaml new file mode 100644 index 000000000..407a494b7 --- /dev/null +++ b/.github/workflows/part1/schedule.yaml @@ -0,0 +1,11 @@ +name: schedule-workflow +on: + schedule: + - cron: '15 * * * *' + + jobs: + schedule-job: + runs-on: ubuntu-latest + steps: + - name: schedule test + run: echo hello world \ No newline at end of file diff --git a/.github/workflows/workflow_dispatch.yaml b/.github/workflows/workflow_dispatch.yaml new file mode 100644 index 000000000..04b09c718 --- /dev/null +++ b/.github/workflows/workflow_dispatch.yaml @@ -0,0 +1,33 @@ +name: workflow-dispatch +on: + workflow_dispatch: + inputs: + name: + description: 'set name' # name이라는 input에 대한 설명 + required: true # input의 필수값 여부 + default: 'github-actions' # input의 기본값 + type: string # 사용할 데이터 타입 + environment: + description: 'set env' + required: true + default: 'dev' + type: choice + options: + - dev + - qa + - prod + +jobs: + workflow-dispatch-job: # 디폴트 브랜치에서만 트리거됨 + runs-on: ubuntu-latest + steps: + - name: step1 + run: echo hello world + - name: step2 + run: | + echo hello world + echo github action + - name: echo inputs + run: | + echo ${{ inputs.name }} + echo ${{ inputs.environment }} From bb931f8c5429b160404308df15e130ed9876f0d6 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 16:23:44 +0900 Subject: [PATCH 12/76] add multiple_event.yaml --- .github/workflows/multiple_event.yaml | 17 +++++++++++++++++ .../{ => part1}/workflow_dispatch.yaml | 0 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/multiple_event.yaml rename .github/workflows/{ => part1}/workflow_dispatch.yaml (100%) diff --git a/.github/workflows/multiple_event.yaml b/.github/workflows/multiple_event.yaml new file mode 100644 index 000000000..ac1ff6659 --- /dev/null +++ b/.github/workflows/multiple_event.yaml @@ -0,0 +1,17 @@ +name: multiple-event-workflow +on: + push: + issues: + types: [opened] + workflow_dispatch: + +jobs: + multiple-event-job: + runs-on: ubuntu-latest + steps: + - name: step1 + run: echo hello world + - name: step2 + run: | + echo hello world + echo github action diff --git a/.github/workflows/workflow_dispatch.yaml b/.github/workflows/part1/workflow_dispatch.yaml similarity index 100% rename from .github/workflows/workflow_dispatch.yaml rename to .github/workflows/part1/workflow_dispatch.yaml From eb26306a75c7b6cae6e4dd7e283ffb3665634792 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 16:31:47 +0900 Subject: [PATCH 13/76] add needs.yaml --- .github/workflows/needs.yaml | 29 +++++++++++++++++++ .../workflows/{ => part1}/multiple_event.yaml | 0 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/needs.yaml rename .github/workflows/{ => part1}/multiple_event.yaml (100%) diff --git a/.github/workflows/needs.yaml b/.github/workflows/needs.yaml new file mode 100644 index 000000000..d9ec24bbb --- /dev/null +++ b/.github/workflows/needs.yaml @@ -0,0 +1,29 @@ +name: needs +on: push + +jobs: + job1: + runs-on: ubuntu-latest + steps: + - name: echo + run: echo "job1 done" + + job2: + runs-on: ubuntu-latest + needs: [job1] + steps: + - name: echo + run: echo "job2 done" + job3: + runs-on: ubuntu-latest + steps: + - name: echo + run: | + echo "job3 failed" + exit 1 + job4: + runs-on: ubuntu-latest + needs: [job3] + steps: + - name: echo + run: echo "job4 done" \ No newline at end of file diff --git a/.github/workflows/multiple_event.yaml b/.github/workflows/part1/multiple_event.yaml similarity index 100% rename from .github/workflows/multiple_event.yaml rename to .github/workflows/part1/multiple_event.yaml From b5829a15b20ce143aaff98fada6dfd0a1921d64d Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 17:34:21 +0900 Subject: [PATCH 14/76] add checkout.yaml --- .github/workflows/checkout.yaml | 17 +++++++++++++++++ .github/workflows/{ => part1}/needs.yaml | 0 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/checkout.yaml rename .github/workflows/{ => part1}/needs.yaml (100%) diff --git a/.github/workflows/checkout.yaml b/.github/workflows/checkout.yaml new file mode 100644 index 000000000..6892d8a76 --- /dev/null +++ b/.github/workflows/checkout.yaml @@ -0,0 +1,17 @@ +name: checkout +on: workflow_dispatch + +jobs: + no-checout: + runs-on: ubuntu-latest + steps: + - name: check file list + run: cat README.md + + checout: + runs-on: ubuntu-latest + steps: + - name : use checkout action + uses: actions/checkout@v4 + - name: check file list + run: cat README.md \ No newline at end of file diff --git a/.github/workflows/needs.yaml b/.github/workflows/part1/needs.yaml similarity index 100% rename from .github/workflows/needs.yaml rename to .github/workflows/part1/needs.yaml From e6e5ba24139194985ebdb785e21687b811836621 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 17:39:49 +0900 Subject: [PATCH 15/76] add context.yaml --- .github/workflows/context.yaml | 10 ++++++++++ .github/workflows/{ => part2}/checkout.yaml | 0 2 files changed, 10 insertions(+) create mode 100644 .github/workflows/context.yaml rename .github/workflows/{ => part2}/checkout.yaml (100%) diff --git a/.github/workflows/context.yaml b/.github/workflows/context.yaml new file mode 100644 index 000000000..290f1d8c3 --- /dev/null +++ b/.github/workflows/context.yaml @@ -0,0 +1,10 @@ +name: context +on: workflow_dispatch + +jobs: + context: + runs-on: ubuntu-latest + steps: + - name: github context + run: echo '${{ toJSON(github) }}' + \ No newline at end of file diff --git a/.github/workflows/checkout.yaml b/.github/workflows/part2/checkout.yaml similarity index 100% rename from .github/workflows/checkout.yaml rename to .github/workflows/part2/checkout.yaml From ecc5fa2d0352ba90d1d04185246ec0915c2d6ab2 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 17:42:45 +0900 Subject: [PATCH 16/76] add context.yaml --- .github/workflows/context.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/context.yaml b/.github/workflows/context.yaml index 290f1d8c3..eae07cfdc 100644 --- a/.github/workflows/context.yaml +++ b/.github/workflows/context.yaml @@ -7,4 +7,7 @@ jobs: steps: - name: github context run: echo '${{ toJSON(github) }}' - \ No newline at end of file + - name: check github context + run: | + echo ${{ github.repository }} + echo ${{ github.event_name }} \ No newline at end of file From 17b347bb835888f519f2312712d80d4c6c37e33c Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 17:48:16 +0900 Subject: [PATCH 17/76] add branch_filter.yaml --- .github/workflows/branch-filter.yaml | 11 +++++++++++ .github/workflows/{ => part2}/context.yaml | 0 2 files changed, 11 insertions(+) create mode 100644 .github/workflows/branch-filter.yaml rename .github/workflows/{ => part2}/context.yaml (100%) diff --git a/.github/workflows/branch-filter.yaml b/.github/workflows/branch-filter.yaml new file mode 100644 index 000000000..1f319db6b --- /dev/null +++ b/.github/workflows/branch-filter.yaml @@ -0,0 +1,11 @@ +name: branch-filter +on: + push: + branches: ["dev"] + +jobs: + branch-filter: + runs-on: ubuntu-latest + steps: + - name: echo + run: echo hello diff --git a/.github/workflows/context.yaml b/.github/workflows/part2/context.yaml similarity index 100% rename from .github/workflows/context.yaml rename to .github/workflows/part2/context.yaml From 79ee8a8dc912c03c803e120cb53686fbe2400d51 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 17:52:32 +0900 Subject: [PATCH 18/76] add path_filter.yaml --- .github/workflows/{ => part2}/branch-filter.yaml | 0 .github/workflows/path_filter.yaml | 12 ++++++++++++ 2 files changed, 12 insertions(+) rename .github/workflows/{ => part2}/branch-filter.yaml (100%) create mode 100644 .github/workflows/path_filter.yaml diff --git a/.github/workflows/branch-filter.yaml b/.github/workflows/part2/branch-filter.yaml similarity index 100% rename from .github/workflows/branch-filter.yaml rename to .github/workflows/part2/branch-filter.yaml diff --git a/.github/workflows/path_filter.yaml b/.github/workflows/path_filter.yaml new file mode 100644 index 000000000..bd99243a6 --- /dev/null +++ b/.github/workflows/path_filter.yaml @@ -0,0 +1,12 @@ +name: path-filter +on: + push: + paths: + - '.github/workflows/part1/*' + +jobs: + path-filter: + runs-on: ubuntu-latest + steps: + - name: echo hello + run: echo hello \ No newline at end of file From 95e479569439351927925aa18b95ffe710c1c052 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 17:53:28 +0900 Subject: [PATCH 19/76] add path_filter.yaml --- .github/workflows/part1/push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/part1/push.yaml b/.github/workflows/part1/push.yaml index 8d2c37b04..3b79bcd3f 100644 --- a/.github/workflows/part1/push.yaml +++ b/.github/workflows/part1/push.yaml @@ -1,4 +1,4 @@ -name: push-workflow # 액션창에서 표현될 명칭 (생략가능) +name: push-workflow 1 # 액션창에서 표현될 명칭 (생략가능) on: push #어떤 이벤트로 인해 깃허브액션을 트리거 시킬지 jobs: # 실행시킬 job의 집합 (필수값) From d885a08b585999cb85944ed755a0e5908c130864 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 17:55:13 +0900 Subject: [PATCH 20/76] add path_filter.yaml --- .github/workflows/path_filter.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/path_filter.yaml b/.github/workflows/path_filter.yaml index bd99243a6..8660ad583 100644 --- a/.github/workflows/path_filter.yaml +++ b/.github/workflows/path_filter.yaml @@ -3,6 +3,7 @@ on: push: paths: - '.github/workflows/part1/*' + - '!.github/workflows/part1/push.yaml' # ! 특정파일이나 디렉터리를 제외할 때 jobs: path-filter: From eaa84e8cbbce4b8282a4ef413624e7f41b0a8e2d Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 17:55:49 +0900 Subject: [PATCH 21/76] add path_filter.yaml --- .github/workflows/part1/push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/part1/push.yaml b/.github/workflows/part1/push.yaml index 3b79bcd3f..5cb67cca0 100644 --- a/.github/workflows/part1/push.yaml +++ b/.github/workflows/part1/push.yaml @@ -1,4 +1,4 @@ -name: push-workflow 1 # 액션창에서 표현될 명칭 (생략가능) +name: push-workflow 2 # 액션창에서 표현될 명칭 (생략가능) on: push #어떤 이벤트로 인해 깃허브액션을 트리거 시킬지 jobs: # 실행시킬 job의 집합 (필수값) From 9ac23029f64086f29dd7b4f69bb86527972d0128 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 17:56:22 +0900 Subject: [PATCH 22/76] add path_filter.yaml --- .github/workflows/part1/pull_request.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/part1/pull_request.yaml b/.github/workflows/part1/pull_request.yaml index 7afac66a6..ba910be09 100644 --- a/.github/workflows/part1/pull_request.yaml +++ b/.github/workflows/part1/pull_request.yaml @@ -1,4 +1,4 @@ -name: pull-request-workflow +name: pull-request-workflow 1 on: pull_request: types: [opened] # pull_request가 생성된 시점에만 업데이트 해주고 싶을때 From 03b5369bd0550f34be025cea6480d37b11f6a7ae Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:00:53 +0900 Subject: [PATCH 23/76] add tag_filter.yaml --- .github/workflows/{ => part2}/path_filter.yaml | 0 .github/workflows/tag_filter.yaml | 12 ++++++++++++ 2 files changed, 12 insertions(+) rename .github/workflows/{ => part2}/path_filter.yaml (100%) create mode 100644 .github/workflows/tag_filter.yaml diff --git a/.github/workflows/path_filter.yaml b/.github/workflows/part2/path_filter.yaml similarity index 100% rename from .github/workflows/path_filter.yaml rename to .github/workflows/part2/path_filter.yaml diff --git a/.github/workflows/tag_filter.yaml b/.github/workflows/tag_filter.yaml new file mode 100644 index 000000000..4a24d0fae --- /dev/null +++ b/.github/workflows/tag_filter.yaml @@ -0,0 +1,12 @@ +name: tag-filter # push 이벤트에서만 사용 가능 +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' # v1.0.0의 패턴 + +jobs: + tag-filter: + runs-on: ubuntu-latest + steps: + - name: echo + run: echo hello \ No newline at end of file From 67f51e0b7613e6191d5ea05dfb32f022939c797c Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:08:16 +0900 Subject: [PATCH 24/76] add timeout.yaml --- .github/workflows/{ => part2}/tag_filter.yaml | 0 .github/workflows/timeout.yaml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) rename .github/workflows/{ => part2}/tag_filter.yaml (100%) create mode 100644 .github/workflows/timeout.yaml diff --git a/.github/workflows/tag_filter.yaml b/.github/workflows/part2/tag_filter.yaml similarity index 100% rename from .github/workflows/tag_filter.yaml rename to .github/workflows/part2/tag_filter.yaml diff --git a/.github/workflows/timeout.yaml b/.github/workflows/timeout.yaml new file mode 100644 index 000000000..5c628e787 --- /dev/null +++ b/.github/workflows/timeout.yaml @@ -0,0 +1,18 @@ +name: timeout +on: push + +jobs: + timeout: + runs-on: ubuntu-latest + timeout-minutes: 2 + steps: + - name: loop + run: | + count=0 + while true; do + echo "seconds: $count" + count=$((count+1)) + sleep 1 + done + - name: echo + run: echo hello \ No newline at end of file From 6a999526500d7baff10ab782912610057309bea2 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:13:14 +0900 Subject: [PATCH 25/76] add timeout.yaml --- .github/workflows/timeout.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/timeout.yaml b/.github/workflows/timeout.yaml index 5c628e787..68ee4b6d2 100644 --- a/.github/workflows/timeout.yaml +++ b/.github/workflows/timeout.yaml @@ -3,16 +3,16 @@ on: push jobs: timeout: - runs-on: ubuntu-latest - timeout-minutes: 2 - steps: - - name: loop - run: | - count=0 - while true; do - echo "seconds: $count" - count=$((count+1)) - sleep 1 - done - - name: echo - run: echo hello \ No newline at end of file + runs-on: ubuntu-latest + timeout-minutes: 2 + steps: + - name: loop + run: | + count=0 + while true; do + echo "seconds: $count" + count=$((count+1)) + sleep 1 + done + - name: echo + run: echo hello \ No newline at end of file From b829e1b45d3eff8011b55c63d72e2006b0a95692 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:14:31 +0900 Subject: [PATCH 26/76] add timeout.yaml --- .github/workflows/timeout.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/timeout.yaml b/.github/workflows/timeout.yaml index 68ee4b6d2..02fc0d364 100644 --- a/.github/workflows/timeout.yaml +++ b/.github/workflows/timeout.yaml @@ -14,5 +14,6 @@ jobs: count=$((count+1)) sleep 1 done + timeout-minutes: 1 - name: echo run: echo hello \ No newline at end of file From 7f61bc6adeb712ae9a585da0cfe2080183c137f8 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:28:07 +0900 Subject: [PATCH 27/76] add timeout.yaml --- .github/workflows/cache | 31 ++++++++++++++++++++++ .github/workflows/{ => part2}/timeout.yaml | 0 my-app/src/App.js | 2 +- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/cache rename .github/workflows/{ => part2}/timeout.yaml (100%) diff --git a/.github/workflows/cache b/.github/workflows/cache new file mode 100644 index 000000000..fbc00cad0 --- /dev/null +++ b/.github/workflows/cache @@ -0,0 +1,31 @@ +name: cache +on: + push: + paths: + - 'my-app/**' + +jobs: + cache: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: action/checkout@v4 + - name: setup-node + uses: action/setup-node@v4 + with: + node-version: 18 + - name: Cache Node.js modules + uses: action/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hasFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install dependencies + run: | + cd my-app + npm ci + - name: npm build + run: | + cd my-app + npm run billd \ No newline at end of file diff --git a/.github/workflows/timeout.yaml b/.github/workflows/part2/timeout.yaml similarity index 100% rename from .github/workflows/timeout.yaml rename to .github/workflows/part2/timeout.yaml diff --git a/my-app/src/App.js b/my-app/src/App.js index 725bc9db5..d4a397c11 100644 --- a/my-app/src/App.js +++ b/my-app/src/App.js @@ -15,7 +15,7 @@ function App() { target="_blank" rel="noopener noreferrer" > - Learn GithubAction cicd + Learn GithubAction1 From ca0a2c8a55101b4a9964d00e6bd83480924fc585 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:31:58 +0900 Subject: [PATCH 28/76] add timeout.yaml --- .github/workflows/{cache => cache.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{cache => cache.yaml} (100%) diff --git a/.github/workflows/cache b/.github/workflows/cache.yaml similarity index 100% rename from .github/workflows/cache rename to .github/workflows/cache.yaml From 53865f105bd83700ab5165901dbed8d42a28a0ef Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:34:07 +0900 Subject: [PATCH 29/76] add timeout.yaml --- .github/workflows/cache.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml index fbc00cad0..9364dd7e5 100644 --- a/.github/workflows/cache.yaml +++ b/.github/workflows/cache.yaml @@ -11,7 +11,7 @@ jobs: - name: checkout uses: action/checkout@v4 - name: setup-node - uses: action/setup-node@v4 + uses: action/setup-node@v3 with: node-version: 18 - name: Cache Node.js modules From ed9746bed7596772cd18f7b09939d933731cfa04 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:41:08 +0900 Subject: [PATCH 30/76] add cache.yaml --- my-app/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my-app/src/App.js b/my-app/src/App.js index d4a397c11..a04541f3c 100644 --- a/my-app/src/App.js +++ b/my-app/src/App.js @@ -15,7 +15,7 @@ function App() { target="_blank" rel="noopener noreferrer" > - Learn GithubAction1 + Learn GithubAction From 76a0aec2cccbceaa6b73608a0d37f51d0a0a6417 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:43:29 +0900 Subject: [PATCH 31/76] add cache.yaml --- .github/workflows/cache.yaml | 2 +- my-app/src/App.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml index 9364dd7e5..d1c333236 100644 --- a/.github/workflows/cache.yaml +++ b/.github/workflows/cache.yaml @@ -18,7 +18,7 @@ jobs: uses: action/cache@v3 with: path: ~/.npm - key: ${{ runner.os }}-node-${{ hasFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - name: Install dependencies diff --git a/my-app/src/App.js b/my-app/src/App.js index a04541f3c..258775b03 100644 --- a/my-app/src/App.js +++ b/my-app/src/App.js @@ -15,7 +15,7 @@ function App() { target="_blank" rel="noopener noreferrer" > - Learn GithubAction + Learn GithubAction2 From bd41bb1c883b6ed614f910bc2147837c725558ba Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:54:03 +0900 Subject: [PATCH 32/76] add artifact.yaml --- .github/workflows/artifact.yaml | 26 ++++++++++++++++++++++++ .github/workflows/{ => part2}/cache.yaml | 0 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/artifact.yaml rename .github/workflows/{ => part2}/cache.yaml (100%) diff --git a/.github/workflows/artifact.yaml b/.github/workflows/artifact.yaml new file mode 100644 index 000000000..f8d3cf03f --- /dev/null +++ b/.github/workflows/artifact.yaml @@ -0,0 +1,26 @@ +name: artifact +on: push + +jobs: + upload-artifact: + runs-on: ubuntu-latest + steps: + - name: echo + run: echo hello-world > hello.txt + - name: upload artifact + uses: actions/upload-artifact@v3 + with: + name: artifact-test + paths: ./hello.txt + + dowload-artifact: + runs-on: ubuntu-latest + needs: [upload-artifact] + steps: + - name: download arifact + uses: actions/download-artifact@v3 + with: + name: artiact-test + path: ./ + - name: check + run: cat hello.txt \ No newline at end of file diff --git a/.github/workflows/cache.yaml b/.github/workflows/part2/cache.yaml similarity index 100% rename from .github/workflows/cache.yaml rename to .github/workflows/part2/cache.yaml From 1409a54b24d94dfeec62cbdd1dfad502f79f3598 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:56:35 +0900 Subject: [PATCH 33/76] add artifact.yaml --- .github/workflows/artifact.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/artifact.yaml b/.github/workflows/artifact.yaml index f8d3cf03f..3c85ff27d 100644 --- a/.github/workflows/artifact.yaml +++ b/.github/workflows/artifact.yaml @@ -13,7 +13,7 @@ jobs: name: artifact-test paths: ./hello.txt - dowload-artifact: + download-artifact: runs-on: ubuntu-latest needs: [upload-artifact] steps: From 4ba5c85d99c2164921d001694874d0f288f15e9b Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 18:58:46 +0900 Subject: [PATCH 34/76] add artifact.yaml --- .github/workflows/artifact.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/artifact.yaml b/.github/workflows/artifact.yaml index 3c85ff27d..46997322b 100644 --- a/.github/workflows/artifact.yaml +++ b/.github/workflows/artifact.yaml @@ -20,7 +20,7 @@ jobs: - name: download arifact uses: actions/download-artifact@v3 with: - name: artiact-test + name: artifact-test path: ./ - name: check run: cat hello.txt \ No newline at end of file From 9c8f18528952c377defee1bf7449f8807dc2bac0 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 26 Oct 2024 19:00:47 +0900 Subject: [PATCH 35/76] add artifact.yaml --- .github/workflows/artifact.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/artifact.yaml b/.github/workflows/artifact.yaml index 46997322b..cd7474b76 100644 --- a/.github/workflows/artifact.yaml +++ b/.github/workflows/artifact.yaml @@ -11,13 +11,12 @@ jobs: uses: actions/upload-artifact@v3 with: name: artifact-test - paths: ./hello.txt - + path: ./hello.txt download-artifact: runs-on: ubuntu-latest needs: [upload-artifact] steps: - - name: download arifact + - name: download artifact uses: actions/download-artifact@v3 with: name: artifact-test From fe15569ffbb3ed4c985cba8ab36c2147785ec327 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 16:59:47 +0900 Subject: [PATCH 36/76] add output.yaml --- .github/workflows/output.yaml | 14 ++++++++++++++ .github/workflows/{ => part2}/artifact.yaml | 0 2 files changed, 14 insertions(+) create mode 100644 .github/workflows/output.yaml rename .github/workflows/{ => part2}/artifact.yaml (100%) diff --git a/.github/workflows/output.yaml b/.github/workflows/output.yaml new file mode 100644 index 000000000..7e5011f5e --- /dev/null +++ b/.github/workflows/output.yaml @@ -0,0 +1,14 @@ +name: output +on: push + +jobs: + create-output: + runs-on: ubuntu-latest + steps: + - name: echo output + id: check-output + run: | + echo "test=hello" >> $GITHUB_OUTPUT + - name: check output + run: | + echo ${{ steps.check-output.outputs.test }} diff --git a/.github/workflows/artifact.yaml b/.github/workflows/part2/artifact.yaml similarity index 100% rename from .github/workflows/artifact.yaml rename to .github/workflows/part2/artifact.yaml From 95a26152f3c281b0d68360580470b6adad54391d Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 17:04:33 +0900 Subject: [PATCH 37/76] add output.yaml --- .github/workflows/output.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/output.yaml b/.github/workflows/output.yaml index 7e5011f5e..0a2bb5bdd 100644 --- a/.github/workflows/output.yaml +++ b/.github/workflows/output.yaml @@ -4,6 +4,8 @@ on: push jobs: create-output: runs-on: ubuntu-latest + outputs: + test: ${{ steps.check-output.outputs.test }} steps: - name: echo output id: check-output @@ -12,3 +14,10 @@ jobs: - name: check output run: | echo ${{ steps.check-output.outputs.test }} + + get-output: + needs: [create-output] + runs-on: ubuntu-latest + steps: + - name: get output + run: echo ${{ needs.create-output.outputs.test }} \ No newline at end of file From 74bfc11a5a82ec337d1b8146a86a3d167f059183 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 17:16:59 +0900 Subject: [PATCH 38/76] add var-1.yaml --- .github/workflows/{ => part2}/output.yaml | 0 .github/workflows/var-1.yaml | 38 +++++++++++++++++++++++ 2 files changed, 38 insertions(+) rename .github/workflows/{ => part2}/output.yaml (100%) create mode 100644 .github/workflows/var-1.yaml diff --git a/.github/workflows/output.yaml b/.github/workflows/part2/output.yaml similarity index 100% rename from .github/workflows/output.yaml rename to .github/workflows/part2/output.yaml diff --git a/.github/workflows/var-1.yaml b/.github/workflows/var-1.yaml new file mode 100644 index 000000000..4f605bdcb --- /dev/null +++ b/.github/workflows/var-1.yaml @@ -0,0 +1,38 @@ +name: var-1 +on: push + +env: + level: workflow + +jobs: + get-env-1: + runs-on: ubuntu-latest + steps: + - name: check env + run: echo "LEVEL ${{ env.level }}" + + get-env-2: + runs-on: ubuntu-latest + env: + level: job + steps: + - name: check env + run: echo "LEVEL ${{ env.level }}" + + get-env-3: + runs-on: ubuntu-latest + env: + level: job + steps: + - name: check env + run: echo "LEVEL ${{ env.level }}" + env: + level: step + + get-env: + runs-on: ubuntu-latest + steps: + - name: check env + run: echo "LEVEL=job" >> $GITHUB_ENV + - name: check env + run : echo "LEVEL" >> ${{ env.level }} \ No newline at end of file From e6d7deebea56b793be261bf5802a8fe2a92b218b Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 17:18:37 +0900 Subject: [PATCH 39/76] add var-1.yaml --- .github/workflows/var-1.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/var-1.yaml b/.github/workflows/var-1.yaml index 4f605bdcb..4e92e4018 100644 --- a/.github/workflows/var-1.yaml +++ b/.github/workflows/var-1.yaml @@ -9,30 +9,30 @@ jobs: runs-on: ubuntu-latest steps: - name: check env - run: echo "LEVEL ${{ env.level }}" - + run: echo "LEVEL ${{ env.level }}" + get-env-2: runs-on: ubuntu-latest - env: + env: level: job steps: - name: check env - run: echo "LEVEL ${{ env.level }}" + run: echo "LEVEL ${{ env.level }}" get-env-3: runs-on: ubuntu-latest - env: + env: level: job steps: - name: check env - run: echo "LEVEL ${{ env.level }}" - env: - level: step - + run: echo "LEVEL ${{ env.level }}" + env: + level: step + get-env: runs-on: ubuntu-latest steps: + - name: create env + run: echo "level=job" >> $GITHUB_ENV - name: check env - run: echo "LEVEL=job" >> $GITHUB_ENV - - name: check env - run : echo "LEVEL" >> ${{ env.level }} \ No newline at end of file + run: echo "LEVEL ${{ env.level }}" \ No newline at end of file From b12e68abcef1444f724f61ff706cecba8a5e0ff3 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 17:20:48 +0900 Subject: [PATCH 40/76] add var-1.yaml --- .github/workflows/var-1.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/var-1.yaml b/.github/workflows/var-1.yaml index 4e92e4018..7d29f393b 100644 --- a/.github/workflows/var-1.yaml +++ b/.github/workflows/var-1.yaml @@ -35,4 +35,7 @@ jobs: - name: create env run: echo "level=job" >> $GITHUB_ENV - name: check env - run: echo "LEVEL ${{ env.level }}" \ No newline at end of file + run: echo "LEVEL ${{ env.level }}" + + + \ No newline at end of file From 1c159f3d774c9e69d54f5997892be4ce95e2319c Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 17:46:01 +0900 Subject: [PATCH 41/76] add var-2.yaml --- .github/workflows/{ => part2}/var-1.yaml | 0 .github/workflows/var-2.yaml | 9 +++++++++ 2 files changed, 9 insertions(+) rename .github/workflows/{ => part2}/var-1.yaml (100%) create mode 100644 .github/workflows/var-2.yaml diff --git a/.github/workflows/var-1.yaml b/.github/workflows/part2/var-1.yaml similarity index 100% rename from .github/workflows/var-1.yaml rename to .github/workflows/part2/var-1.yaml diff --git a/.github/workflows/var-2.yaml b/.github/workflows/var-2.yaml new file mode 100644 index 000000000..b8791f216 --- /dev/null +++ b/.github/workflows/var-2.yaml @@ -0,0 +1,9 @@ +name: var-2 +on: push + +jobs: + get-var: + runs-on: ubuntu-latest + steps: + - name: get var + run: echo ${{ vars.level }} \ No newline at end of file From 358b07900f08d0017641edf47e8039aea2951fe9 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 17:56:52 +0900 Subject: [PATCH 42/76] add secrets.yaml --- .github/workflows/{ => part2}/var-2.yaml | 0 .github/workflows/secrets.yaml | 9 +++++++++ 2 files changed, 9 insertions(+) rename .github/workflows/{ => part2}/var-2.yaml (100%) create mode 100644 .github/workflows/secrets.yaml diff --git a/.github/workflows/var-2.yaml b/.github/workflows/part2/var-2.yaml similarity index 100% rename from .github/workflows/var-2.yaml rename to .github/workflows/part2/var-2.yaml diff --git a/.github/workflows/secrets.yaml b/.github/workflows/secrets.yaml new file mode 100644 index 000000000..bbf5432a3 --- /dev/null +++ b/.github/workflows/secrets.yaml @@ -0,0 +1,9 @@ +name: secrets +on: push + +jobs: + get-secrets: + runs-on: ubuntu-latest + steps: + - name: get secrets + run: echo ${{ secrets.level }} \ No newline at end of file From 00d3307d268ca727e8c0df1df5d49d748f161537 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:08:12 +0900 Subject: [PATCH 43/76] add environment.yaml --- .github/workflows/environment.yaml | 11 +++++++++++ .github/workflows/{ => part2}/secrets.yaml | 0 2 files changed, 11 insertions(+) create mode 100644 .github/workflows/environment.yaml rename .github/workflows/{ => part2}/secrets.yaml (100%) diff --git a/.github/workflows/environment.yaml b/.github/workflows/environment.yaml new file mode 100644 index 000000000..b45599dd6 --- /dev/null +++ b/.github/workflows/environment.yaml @@ -0,0 +1,11 @@ +name: environment +on: push + +jobs: + get-env: + runs-on: ubuntu-latest + steps: + - name: check env & secret + run: | + echo ${{ vars.level }} + echo ${{ secrets.key }} \ No newline at end of file diff --git a/.github/workflows/secrets.yaml b/.github/workflows/part2/secrets.yaml similarity index 100% rename from .github/workflows/secrets.yaml rename to .github/workflows/part2/secrets.yaml From 6004dd28af8b17dfdcd47bb8bcb99b81b6d9d716 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:16:11 +0900 Subject: [PATCH 44/76] add environment.yaml --- .github/workflows/environment.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/environment.yaml b/.github/workflows/environment.yaml index b45599dd6..5003773d5 100644 --- a/.github/workflows/environment.yaml +++ b/.github/workflows/environment.yaml @@ -8,4 +8,13 @@ jobs: - name: check env & secret run: | echo ${{ vars.level }} - echo ${{ secrets.key }} \ No newline at end of file + echo ${{ secrets.key }} + + get-env-dev: + runs-on: ubuntu-latest + environment: dev + steps: + - name: check env & secret + run: | + echo ${{ vars.level }} + echo ${{ secrets.key }} \ No newline at end of file From 9e727e898bfe43f489ac4d1985a9b0e573448cd1 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:17:15 +0900 Subject: [PATCH 45/76] add environment.yaml --- .github/workflows/environment.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/environment.yaml b/.github/workflows/environment.yaml index 5003773d5..747b78090 100644 --- a/.github/workflows/environment.yaml +++ b/.github/workflows/environment.yaml @@ -11,10 +11,10 @@ jobs: echo ${{ secrets.key }} get-env-dev: - runs-on: ubuntu-latest - environment: dev - steps: - - name: check env & secret - run: | - echo ${{ vars.level }} - echo ${{ secrets.key }} \ No newline at end of file + runs-on: ubuntu-latest + environment: dev + steps: + - name: check env & secret + run: | + echo ${{ vars.level }} + echo ${{ secrets.key }} \ No newline at end of file From 9e4f429a0eb55ac0a151a2d16c1388993bfb5518 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:24:08 +0900 Subject: [PATCH 46/76] add matrix.yaml --- .github/workflows/matrix.yaml | 15 +++++++++++++++ .github/workflows/{ => part2}/environment.yaml | 0 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/matrix.yaml rename .github/workflows/{ => part2}/environment.yaml (100%) diff --git a/.github/workflows/matrix.yaml b/.github/workflows/matrix.yaml new file mode 100644 index 000000000..c0caf7ad2 --- /dev/null +++ b/.github/workflows/matrix.yaml @@ -0,0 +1,15 @@ +name: matrix +on: push + +jobs: + get-matrix: + strategy: + matrix: + os: [windows-latest, ubuntu-latest] + version: [12,14] + runs-on: ${{ matrix.os }} + steps: + - name: check matrix + run: | + echo ${{ matrix.os }} + echo ${{ matrix.version }} \ No newline at end of file diff --git a/.github/workflows/environment.yaml b/.github/workflows/part2/environment.yaml similarity index 100% rename from .github/workflows/environment.yaml rename to .github/workflows/part2/environment.yaml From d39306235aef9fd5f8425d6718f11835b7104353 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:31:55 +0900 Subject: [PATCH 47/76] add if-1.yaml --- .github/workflows/if-1.yaml | 19 +++++++++++++++++++ .github/workflows/{ => part2}/matrix.yaml | 0 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/if-1.yaml rename .github/workflows/{ => part2}/matrix.yaml (100%) diff --git a/.github/workflows/if-1.yaml b/.github/workflows/if-1.yaml new file mode 100644 index 000000000..71323a104 --- /dev/null +++ b/.github/workflows/if-1.yaml @@ -0,0 +1,19 @@ +name: if-1 +on: + push: + workflow_dispatch: + +jobs: + job1: + runs-on: ubuntu-latest + if: github.event_name == 'push' + steps: + - name: get event name + run: echo ${{ github.event_name }} + job2: + runs-on: ubuntu-latest + if: github.event_name != 'push' + steps: + - name: get event name + run: echo ${{ github.event_name }} + \ No newline at end of file diff --git a/.github/workflows/matrix.yaml b/.github/workflows/part2/matrix.yaml similarity index 100% rename from .github/workflows/matrix.yaml rename to .github/workflows/part2/matrix.yaml From 42c7651b98f04b757e0c5633b25a579b8ceeb42d Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:34:53 +0900 Subject: [PATCH 48/76] add if-1.yaml --- .github/workflows/if-1.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/if-1.yaml b/.github/workflows/if-1.yaml index 71323a104..f55c751ac 100644 --- a/.github/workflows/if-1.yaml +++ b/.github/workflows/if-1.yaml @@ -16,4 +16,13 @@ jobs: steps: - name: get event name run: echo ${{ github.event_name }} + job3: + runs-on: ubuntu-latest + steps: + - name: get event name + - if: github.event_name == 'push' + run: echo "PUSH" + - name: get event name + - if: github.event_name != 'push' + run: echo "WORKFLOW_DISPATCH" \ No newline at end of file From 0fab50e7523d3b0892dbf5745d93930492af1d8e Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:35:41 +0900 Subject: [PATCH 49/76] add if-1.yaml --- .github/workflows/if-1.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/if-1.yaml b/.github/workflows/if-1.yaml index f55c751ac..7cc29af9a 100644 --- a/.github/workflows/if-1.yaml +++ b/.github/workflows/if-1.yaml @@ -20,9 +20,9 @@ jobs: runs-on: ubuntu-latest steps: - name: get event name - - if: github.event_name == 'push' + if: github.event_name == 'push' run: echo "PUSH" - name: get event name - - if: github.event_name != 'push' + if: github.event_name != 'push' run: echo "WORKFLOW_DISPATCH" \ No newline at end of file From c89befc5060dde8090bd10dcb8d2d677cddb08f5 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:42:21 +0900 Subject: [PATCH 50/76] add if-2.yaml --- .github/workflows/if-2.yaml | 18 ++++++++++++++++++ .github/workflows/{ => part2}/if-1.yaml | 0 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/if-2.yaml rename .github/workflows/{ => part2}/if-1.yaml (100%) diff --git a/.github/workflows/if-2.yaml b/.github/workflows/if-2.yaml new file mode 100644 index 000000000..d6cbf92ac --- /dev/null +++ b/.github/workflows/if-2.yaml @@ -0,0 +1,18 @@ +name: if-2 +on: push + +jobs: + job1: + runs-on: ubuntu-latest + steps: + - name: exit 1 + run: exit 1 + - name: echo + run: echo hello + + job2: + needs: [job1] + runs-on: ubuntu-latest + steps: + - name: echo + run: echo hello \ No newline at end of file diff --git a/.github/workflows/if-1.yaml b/.github/workflows/part2/if-1.yaml similarity index 100% rename from .github/workflows/if-1.yaml rename to .github/workflows/part2/if-1.yaml From 135cb26212e9562f9e41c8e3db954ba8a7704a2e Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:43:03 +0900 Subject: [PATCH 51/76] add if-2.yaml --- .github/workflows/if-2.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/if-2.yaml b/.github/workflows/if-2.yaml index d6cbf92ac..5949cdf21 100644 --- a/.github/workflows/if-2.yaml +++ b/.github/workflows/if-2.yaml @@ -13,6 +13,7 @@ jobs: job2: needs: [job1] runs-on: ubuntu-latest + if: always() steps: - name: echo run: echo hello \ No newline at end of file From 92fc6b398b7c506e25d717ded0ecee66eeef59f7 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:43:42 +0900 Subject: [PATCH 52/76] add if-2.yaml --- .github/workflows/if-2.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/if-2.yaml b/.github/workflows/if-2.yaml index 5949cdf21..a077d72c9 100644 --- a/.github/workflows/if-2.yaml +++ b/.github/workflows/if-2.yaml @@ -8,6 +8,7 @@ jobs: - name: exit 1 run: exit 1 - name: echo + if: always() run: echo hello job2: From 2d807feaab3b0ef193af70f2e9ffd609957548e4 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Wed, 30 Oct 2024 18:51:43 +0900 Subject: [PATCH 53/76] start-function.yaml --- .github/workflows/{ => part2}/if-2.yaml | 0 .github/workflows/string-function.yaml | 27 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) rename .github/workflows/{ => part2}/if-2.yaml (100%) create mode 100644 .github/workflows/string-function.yaml diff --git a/.github/workflows/if-2.yaml b/.github/workflows/part2/if-2.yaml similarity index 100% rename from .github/workflows/if-2.yaml rename to .github/workflows/part2/if-2.yaml diff --git a/.github/workflows/string-function.yaml b/.github/workflows/string-function.yaml new file mode 100644 index 000000000..db721e3da --- /dev/null +++ b/.github/workflows/string-function.yaml @@ -0,0 +1,27 @@ +name: string-function +on: push + +jobs: + string-function: + runs-on: ubuntu-latest + steps: + - name: startswith + if: startsWith('github actions', 'git') + run: echo "git" + - name: startswith + if: startsWith('github actions', 'test') + run: echo "test" + + - name: endswith + if: endsWith('github actions', 'ions') + run: echo "ions" + - name: endsWith + if: endsWith('github actions', 'test') + run: echo "test" + + - name: contains + if: contains('github actions', 'act') + run: echo "contains act" + - name: contains + if: contains('github, actions', 'git') + run: echo "contains git" \ No newline at end of file From 74ebd75d3c18b94a8cf57109e98a301edae022f7 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 16:31:27 +0900 Subject: [PATCH 54/76] add create_repo.yaml --- .github/workflows/create_repo.yaml | 28 +++++++++++++++++++ .../{ => part2}/string-function.yaml | 0 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/create_repo.yaml rename .github/workflows/{ => part2}/string-function.yaml (100%) diff --git a/.github/workflows/create_repo.yaml b/.github/workflows/create_repo.yaml new file mode 100644 index 000000000..3be14497e --- /dev/null +++ b/.github/workflows/create_repo.yaml @@ -0,0 +1,28 @@ +name: create-repo +on: + workflow-dispatch: + inputs: + prefix: + description: 'set repo prefix' + required: true + default: 'service' + type: choice + options: + - example + - service + name: + description: 'set repo name' + required: true + default: 'github-actions' + type: string + +jpbs: + create-repo-automation: + runs-on: ubuntu-latest + steps: + - name: gh auth login + run: | + echo ${{ secrets.PERSONAL_ACCESS_TOKEN }} | gh auth login --with-token + - name: create-repo + run: | + gh repo create heesun-action/${{ inputs.prefix }}-${{ inputs.name }} -- public --add-readme \ No newline at end of file diff --git a/.github/workflows/string-function.yaml b/.github/workflows/part2/string-function.yaml similarity index 100% rename from .github/workflows/string-function.yaml rename to .github/workflows/part2/string-function.yaml From 852037ce8cb4bad29988a61fc7e4dcfcb47a87be Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 16:33:51 +0900 Subject: [PATCH 55/76] add create_repo.yaml --- .github/workflows/create_repo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_repo.yaml b/.github/workflows/create_repo.yaml index 3be14497e..5fccb6d78 100644 --- a/.github/workflows/create_repo.yaml +++ b/.github/workflows/create_repo.yaml @@ -25,4 +25,4 @@ jpbs: echo ${{ secrets.PERSONAL_ACCESS_TOKEN }} | gh auth login --with-token - name: create-repo run: | - gh repo create heesun-action/${{ inputs.prefix }}-${{ inputs.name }} -- public --add-readme \ No newline at end of file + gh repo create heesun-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme \ No newline at end of file From 8b95da7b9a827a8e0fb6bbc12f40fc6935d09bf8 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 16:35:15 +0900 Subject: [PATCH 56/76] add create_repo.yaml --- .github/workflows/create_repo.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/create_repo.yaml b/.github/workflows/create_repo.yaml index 5fccb6d78..b9016cbec 100644 --- a/.github/workflows/create_repo.yaml +++ b/.github/workflows/create_repo.yaml @@ -1,13 +1,13 @@ name: create-repo -on: - workflow-dispatch: +on: + workflow_dispatch: inputs: prefix: description: 'set repo prefix' required: true default: 'service' type: choice - options: + options: - example - service name: @@ -16,7 +16,7 @@ on: default: 'github-actions' type: string -jpbs: +jobs: create-repo-automation: runs-on: ubuntu-latest steps: @@ -25,4 +25,4 @@ jpbs: echo ${{ secrets.PERSONAL_ACCESS_TOKEN }} | gh auth login --with-token - name: create-repo run: | - gh repo create heesun-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme \ No newline at end of file + gh repo create sangwon-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme \ No newline at end of file From 1c360ff82281878aa6ee33ce43d5b05394593671 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 16:49:12 +0900 Subject: [PATCH 57/76] add create_repo.yaml --- .github/workflows/create_repo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_repo.yaml b/.github/workflows/create_repo.yaml index b9016cbec..e9c4e9f5c 100644 --- a/.github/workflows/create_repo.yaml +++ b/.github/workflows/create_repo.yaml @@ -25,4 +25,4 @@ jobs: echo ${{ secrets.PERSONAL_ACCESS_TOKEN }} | gh auth login --with-token - name: create-repo run: | - gh repo create sangwon-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme \ No newline at end of file + gh repo create heesun-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme \ No newline at end of file From bdd40e2300f1931da69f57f5c950f2ef1ca6e5e0 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 16:56:32 +0900 Subject: [PATCH 58/76] add create_repo.yaml --- .github/workflows/create_repo.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_repo.yaml b/.github/workflows/create_repo.yaml index e9c4e9f5c..2cb59b48a 100644 --- a/.github/workflows/create_repo.yaml +++ b/.github/workflows/create_repo.yaml @@ -24,5 +24,29 @@ jobs: run: | echo ${{ secrets.PERSONAL_ACCESS_TOKEN }} | gh auth login --with-token - name: create-repo + id: create-repo run: | - gh repo create heesun-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme \ No newline at end of file + gh repo create heesun-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme + - name: slack + if: always() + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "attachments": [ + { + "pretext": "create repo result", + "color": "28a745" + "fields": [ + { + "title": "create repo result ${{ steps.create-repo.outcome }}", + "short": true, + "value": "${{ inputs.prefix}}-${{ inputs.name }}" + } + ] + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file From 3d9939c78fba3afb7514ed176ecdccdea8846080 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 16:59:41 +0900 Subject: [PATCH 59/76] add create_repo.yaml --- .github/workflows/create_repo.yaml | 44 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/create_repo.yaml b/.github/workflows/create_repo.yaml index 2cb59b48a..f617c426c 100644 --- a/.github/workflows/create_repo.yaml +++ b/.github/workflows/create_repo.yaml @@ -26,27 +26,27 @@ jobs: - name: create-repo id: create-repo run: | - gh repo create heesun-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme - - name: slack + gh repo create sangwon-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme + - name: slack if: always() uses: slackapi/slack-github-action@v1.24.0 - with: - payload: | - { - "attachments": [ - { - "pretext": "create repo result", - "color": "28a745" - "fields": [ - { - "title": "create repo result ${{ steps.create-repo.outcome }}", - "short": true, - "value": "${{ inputs.prefix}}-${{ inputs.name }}" - } - ] - } - ] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file + with: + payload: | + { + "attachments": [ + { + "pretext": "create repo result", + "color": "28a745", + "fields": [ + { + "title": "create repo result ${{ steps.create-repo.outcome }}", + "short": true, + "value": "${{ inputs.prefix }}-${{ inputs.name }}" + } + ] + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file From b2279cde95961044a35e9d75959bb30178f95f71 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 17:00:10 +0900 Subject: [PATCH 60/76] add create_repo.yaml --- .github/workflows/create_repo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_repo.yaml b/.github/workflows/create_repo.yaml index f617c426c..1a040a823 100644 --- a/.github/workflows/create_repo.yaml +++ b/.github/workflows/create_repo.yaml @@ -26,7 +26,7 @@ jobs: - name: create-repo id: create-repo run: | - gh repo create sangwon-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme + gh repo create heesun-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme - name: slack if: always() uses: slackapi/slack-github-action@v1.24.0 From a2c06fe408a48697d67b22501b4aea2b36069c4e Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 17:48:53 +0900 Subject: [PATCH 61/76] add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 28 +++++++++++++++++++ .../workflows/{ => part3}/create_repo.yaml | 0 keyword-list.txt | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 .github/workflows/issue_notify.yaml rename .github/workflows/{ => part3}/create_repo.yaml (100%) create mode 100644 keyword-list.txt diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/issue_notify.yaml new file mode 100644 index 000000000..192f2ed47 --- /dev/null +++ b/.github/workflows/issue_notify.yaml @@ -0,0 +1,28 @@ +name: issue-notify + +on: + issues: + types: [opened] + +jobs: + get-keyword: + runs-on: ubuntu-latest + outputs: + level: ${{ steps.get-keyword.outputs.level }} + steps: + - name: checkout + uses: actions/checkout@v4 + - name: get keyword + id: get-keyword + run: | + echo level=Undefined >> $GITHUB_OUTPUT + + keywords=$(cat keyword-list.txt) + for keyword in $keywords; do + if [[ "${{ github.event.issue.title }}" =~ "$keyword" ]]; then + echo level=$keyword >> $GITHUB_OUTPUT + fi + done + - name: get output + run: | + echo ${{ steps.get-keyword.outputs.level }} \ No newline at end of file diff --git a/.github/workflows/create_repo.yaml b/.github/workflows/part3/create_repo.yaml similarity index 100% rename from .github/workflows/create_repo.yaml rename to .github/workflows/part3/create_repo.yaml diff --git a/keyword-list.txt b/keyword-list.txt new file mode 100644 index 000000000..503fe1db0 --- /dev/null +++ b/keyword-list.txt @@ -0,0 +1,2 @@ +critical +normal \ No newline at end of file From fc139cd6339b4561a2fcd92dd0e6468f2e139667 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 18:02:04 +0900 Subject: [PATCH 62/76] add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 32 ++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/issue_notify.yaml index 192f2ed47..5a7b122b4 100644 --- a/.github/workflows/issue_notify.yaml +++ b/.github/workflows/issue_notify.yaml @@ -25,4 +25,34 @@ jobs: done - name: get output run: | - echo ${{ steps.get-keyword.outputs.level }} \ No newline at end of file + echo ${{ steps.get-keyword.outputs.level }} + + slack: + needs: [get-keyword] + if: needs.get-keyword.outputs.level != 'Undefined' + runs-on: ubuntu-latest + environment: ${{ needs.get-keyword.outputs.level }} + steps: + - name: slack + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "attachments": [ + { + "pretext": "issue alert message" + "color": "28a745" + "fields": [ + { + "title": "Level : ${{ needs.getkeyword.outputs.level }}", + "short": true, + "value": "issue url : ${{ github.event.issue.html_url }}" + + } + ] + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMINZG_WEBHOOK From b0bc27f89beda89359c41915957fe8d4ffd8a040 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 18:06:50 +0900 Subject: [PATCH 63/76] add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/issue_notify.yaml index 5a7b122b4..dd6772103 100644 --- a/.github/workflows/issue_notify.yaml +++ b/.github/workflows/issue_notify.yaml @@ -40,14 +40,13 @@ jobs: { "attachments": [ { - "pretext": "issue alert message" - "color": "28a745" + "pretext": "issue alert message", + "color": "28a745", "fields": [ { - "title": "Level : ${{ needs.getkeyword.outputs.level }}", + "title": "Level : ${{ needs.get-keyword.outputs.level }}", "short": true, "value": "issue url : ${{ github.event.issue.html_url }}" - } ] } @@ -55,4 +54,4 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMINZG_WEBHOOK + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK From fce049db4fc2bf0c9ddb6d895257d8a8a174abbb Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 18:15:12 +0900 Subject: [PATCH 64/76] add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/issue_notify.yaml index dd6772103..577e71dd6 100644 --- a/.github/workflows/issue_notify.yaml +++ b/.github/workflows/issue_notify.yaml @@ -31,7 +31,11 @@ jobs: needs: [get-keyword] if: needs.get-keyword.outputs.level != 'Undefined' runs-on: ubuntu-latest - environment: ${{ needs.get-keyword.outputs.level }} + # environment: ${{ needs.get-keyword.outputs.level }} + strategy: + matrix: # 어떤 환경을 사용했는지 파악 가능 + environment: [${{ needs.get-keyword.outputs.level }}] + environment: ${{ matrix.environment }} steps: - name: slack uses: slackapi/slack-github-action@v1.24.0 From 24c5ddca169174867ec49120414c6f0dc9a2afef Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 18:17:00 +0900 Subject: [PATCH 65/76] add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/issue_notify.yaml index 577e71dd6..190849d28 100644 --- a/.github/workflows/issue_notify.yaml +++ b/.github/workflows/issue_notify.yaml @@ -34,8 +34,8 @@ jobs: # environment: ${{ needs.get-keyword.outputs.level }} strategy: matrix: # 어떤 환경을 사용했는지 파악 가능 - environment: [${{ needs.get-keyword.outputs.level }}] - environment: ${{ matrix.environment }} + environment: ["${{ needs.get-keyword.outputs.level }}"] + environment: ${{ matrix.environment }} steps: - name: slack uses: slackapi/slack-github-action@v1.24.0 From be272bfe4b44147a9eb04ffe0da4581b5e4f2cb4 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Thu, 31 Oct 2024 18:21:08 +0900 Subject: [PATCH 66/76] add issue_notify.yaml --- keyword-list.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keyword-list.txt b/keyword-list.txt index 503fe1db0..c86e36bdd 100644 --- a/keyword-list.txt +++ b/keyword-list.txt @@ -1,2 +1,3 @@ critical -normal \ No newline at end of file +normal +high \ No newline at end of file From a5ad71aa09aa34900e57cf62d7e4617d48fb68d9 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 9 Nov 2024 15:56:50 +0900 Subject: [PATCH 67/76] add cicd-1.yaml --- .github/workflows/cicd-1.yaml | 29 +++++++++++++++++++ .../workflows/{ => part3}/issue_notify.yaml | 0 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/cicd-1.yaml rename .github/workflows/{ => part3}/issue_notify.yaml (100%) diff --git a/.github/workflows/cicd-1.yaml b/.github/workflows/cicd-1.yaml new file mode 100644 index 000000000..8b1b9c67c --- /dev/null +++ b/.github/workflows/cicd-1.yaml @@ -0,0 +1,29 @@ +name: cicd-1 +on: + pull_request: + type: [opened, synchronize, closed] # close를 정의해야 merge될 때 동작제어 가능 + brahches: [dev] + paths: + - 'my-app/**' + +jobs: + test: # ci를 위해 실행하는 job + if: github.event.action == 'opened' || github.event.action == 'synchronize' + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + image-build: # pr이 merge되면 실행 (cd단계) + if: github.event.pull_request.merge == true + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + deploy: # image-bulid 잡이 성공한 다음 실행 (cd단계) + runs-on: ubuntu-latest + needs: [image-build] + steps: + - name: checkout + uses: actions/checkout@v4 \ No newline at end of file diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/part3/issue_notify.yaml similarity index 100% rename from .github/workflows/issue_notify.yaml rename to .github/workflows/part3/issue_notify.yaml From a5bb82bd56b8e58bdfcb7f81811910d0d075ebf9 Mon Sep 17 00:00:00 2001 From: Heesun Kim <76512936+heesunkimm@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:59:16 +0900 Subject: [PATCH 68/76] Update App.js --- my-app/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my-app/src/App.js b/my-app/src/App.js index 258775b03..a5105428d 100644 --- a/my-app/src/App.js +++ b/my-app/src/App.js @@ -15,7 +15,7 @@ function App() { target="_blank" rel="noopener noreferrer" > - Learn GithubAction2 + Learn GithubAction cicd1 test From a6c25c7eb791ee77b25dc79f6303a6759dbfd436 Mon Sep 17 00:00:00 2001 From: Heesun Kim <76512936+heesunkimm@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:02:46 +0900 Subject: [PATCH 69/76] Update App.js --- my-app/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my-app/src/App.js b/my-app/src/App.js index a5105428d..c0486123b 100644 --- a/my-app/src/App.js +++ b/my-app/src/App.js @@ -15,7 +15,7 @@ function App() { target="_blank" rel="noopener noreferrer" > - Learn GithubAction cicd1 test + Learn GithubAction cicd1 test2 From b7455cb3461aa2dcc6504823526bd211572a2166 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 9 Nov 2024 16:10:32 +0900 Subject: [PATCH 70/76] add cicd-1.yaml --- .github/workflows/cicd-1.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd-1.yaml b/.github/workflows/cicd-1.yaml index 8b1b9c67c..c3dc5b0c9 100644 --- a/.github/workflows/cicd-1.yaml +++ b/.github/workflows/cicd-1.yaml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 image-build: # pr이 merge되면 실행 (cd단계) - if: github.event.pull_request.merge == true + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: checkout @@ -23,7 +23,7 @@ jobs: deploy: # image-bulid 잡이 성공한 다음 실행 (cd단계) runs-on: ubuntu-latest - needs: [image-build] + needs: [ image-build ] steps: - name: checkout uses: actions/checkout@v4 \ No newline at end of file From 0db9f344f7975b30b3d86096905438f2759fb599 Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 9 Nov 2024 16:15:08 +0900 Subject: [PATCH 71/76] add cicd-1.yaml --- .github/workflows/cicd-1.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd-1.yaml b/.github/workflows/cicd-1.yaml index c3dc5b0c9..7be085d94 100644 --- a/.github/workflows/cicd-1.yaml +++ b/.github/workflows/cicd-1.yaml @@ -2,7 +2,7 @@ name: cicd-1 on: pull_request: type: [opened, synchronize, closed] # close를 정의해야 merge될 때 동작제어 가능 - brahches: [dev] + branches: [dev] paths: - 'my-app/**' @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 image-build: # pr이 merge되면 실행 (cd단계) - if: github.event.pull_request.merged == true + if: github.event.pull_request.merged runs-on: ubuntu-latest steps: - name: checkout From 3f12544b664fe8133892bf7bf800fba58c523ad0 Mon Sep 17 00:00:00 2001 From: Heesun Kim <76512936+heesunkimm@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:20:39 +0900 Subject: [PATCH 72/76] Update cicd-1.yaml --- .github/workflows/cicd-1.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd-1.yaml b/.github/workflows/cicd-1.yaml index 8b1b9c67c..e759d91cd 100644 --- a/.github/workflows/cicd-1.yaml +++ b/.github/workflows/cicd-1.yaml @@ -2,7 +2,7 @@ name: cicd-1 on: pull_request: type: [opened, synchronize, closed] # close를 정의해야 merge될 때 동작제어 가능 - brahches: [dev] + branches: [dev] paths: - 'my-app/**' @@ -26,4 +26,4 @@ jobs: needs: [image-build] steps: - name: checkout - uses: actions/checkout@v4 \ No newline at end of file + uses: actions/checkout@v4 From 1180280563d70485ce8aa1f09d15cd1c90b52a76 Mon Sep 17 00:00:00 2001 From: Heesun Kim <76512936+heesunkimm@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:21:04 +0900 Subject: [PATCH 73/76] Update App.js --- my-app/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my-app/src/App.js b/my-app/src/App.js index c0486123b..ec7721494 100644 --- a/my-app/src/App.js +++ b/my-app/src/App.js @@ -15,7 +15,7 @@ function App() { target="_blank" rel="noopener noreferrer" > - Learn GithubAction cicd1 test2 + Learn GithubAction cicd1 test1 From dcbbdf86ebb947d406144c5cdbb4589d3dfe4500 Mon Sep 17 00:00:00 2001 From: Heesun Kim <76512936+heesunkimm@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:21:38 +0900 Subject: [PATCH 74/76] Update App.js --- my-app/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my-app/src/App.js b/my-app/src/App.js index ec7721494..c0486123b 100644 --- a/my-app/src/App.js +++ b/my-app/src/App.js @@ -15,7 +15,7 @@ function App() { target="_blank" rel="noopener noreferrer" > - Learn GithubAction cicd1 test1 + Learn GithubAction cicd1 test2 From 2a14170789a83cffad14ef03cd39d4dae91ef0da Mon Sep 17 00:00:00 2001 From: heesunkimm Date: Sat, 9 Nov 2024 16:30:19 +0900 Subject: [PATCH 75/76] add cicd-1.yaml --- .github/workflows/cicd-1.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd-1.yaml b/.github/workflows/cicd-1.yaml index 7be085d94..c3dc5b0c9 100644 --- a/.github/workflows/cicd-1.yaml +++ b/.github/workflows/cicd-1.yaml @@ -2,7 +2,7 @@ name: cicd-1 on: pull_request: type: [opened, synchronize, closed] # close를 정의해야 merge될 때 동작제어 가능 - branches: [dev] + brahches: [dev] paths: - 'my-app/**' @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 image-build: # pr이 merge되면 실행 (cd단계) - if: github.event.pull_request.merged + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: checkout From 328b172e9829f56b8c9a93065d448c98a7333081 Mon Sep 17 00:00:00 2001 From: Heesun Kim <76512936+heesunkimm@users.noreply.github.com> Date: Sat, 9 Nov 2024 19:17:09 +0900 Subject: [PATCH 76/76] Update App.js --- my-app/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my-app/src/App.js b/my-app/src/App.js index c0486123b..1967100f8 100644 --- a/my-app/src/App.js +++ b/my-app/src/App.js @@ -15,7 +15,7 @@ function App() { target="_blank" rel="noopener noreferrer" > - Learn GithubAction cicd1 test2 + Learn GithubAction cicd1-aws1