From a20bdb8258f46290c6ea99dd6e73f2af592182fa Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sun, 8 Jun 2025 22:01:57 +0900 Subject: [PATCH 01/63] Add push.yaml --- .github/workflows/push.yaml | 9 +++++++++ .idea/.gitignore | 8 ++++++++ .idea/github-actions.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ 6 files changed, 46 insertions(+) create mode 100644 .github/workflows/push.yaml create mode 100644 .idea/.gitignore create mode 100644 .idea/github-actions.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 000000000..a1fa629da --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,9 @@ +name: push-workflow +on: push + +jobs: + push-job: + runs-on: ubuntu-latest + steps: + - name: step1 + run: echo hello world diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 000000000..c3f502a19 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 디폴트 무시된 파일 +/shelf/ +/workspace.xml +# 에디터 기반 HTTP 클라이언트 요청 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/github-actions.iml b/.idea/github-actions.iml new file mode 100644 index 000000000..d6ebd4805 --- /dev/null +++ b/.idea/github-actions.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..47478b911 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..e152f1a5c --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From b6bfc6d50f99670be72b2d3119f04b2708808538 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sun, 8 Jun 2025 22:02:59 +0900 Subject: [PATCH 02/63] Add push.yaml --- .github/workflows/push.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index a1fa629da..ce889531c 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -7,3 +7,7 @@ jobs: steps: - name: step1 run: echo hello world + - name: step2 + run: | + echo hello world + echo github aciton From 4019ace9f8b0b7394e79145ef73824e8f345cf27 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sun, 8 Jun 2025 22:04:24 +0900 Subject: [PATCH 03/63] Add push.yaml --- .github/workflows/{ => part1}/push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{ => part1}/push.yaml (87%) diff --git a/.github/workflows/push.yaml b/.github/workflows/part1/push.yaml similarity index 87% rename from .github/workflows/push.yaml rename to .github/workflows/part1/push.yaml index ce889531c..3cfb4061b 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/part1/push.yaml @@ -10,4 +10,4 @@ jobs: - name: step2 run: | echo hello world - echo github aciton + echo github action From ca307ba3195ac8d62887b3bf6df0b6056ccc7264 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Mon, 9 Jun 2025 20:36:44 +0900 Subject: [PATCH 04/63] 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..b8b3f946c --- /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 2c008ed0eb2f93f5f3b2d0908e03d6a56ed74753 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Mon, 9 Jun 2025 20:42:14 +0900 Subject: [PATCH 05/63] 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 b8b3f946c..fee5ed71f 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] jobs: pull-request-job: From c4723dcbb7a75d845b415c08f0399639d68f1235 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Mon, 9 Jun 2025 22:43:22 +0900 Subject: [PATCH 06/63] 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..f243d9a9b --- /dev/null +++ b/.github/workflows/issue.yaml @@ -0,0 +1,15 @@ +name: issue-workflow +on: + pull_request: + 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 \ No newline at end of file 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 60c603a800e007ab420a767c24295195cbbbfd35 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Tue, 17 Jun 2025 21:51:19 +0900 Subject: [PATCH 07/63] Add issue_comment.yaml --- .github/workflows/issue_comment.yaml | 16 ++++++++++++++++ .github/workflows/{ => part1}/issue.yaml | 0 2 files changed, 16 insertions(+) create mode 100644 .github/workflows/issue_comment.yaml rename .github/workflows/{ => part1}/issue.yaml (100%) diff --git a/.github/workflows/issue_comment.yaml b/.github/workflows/issue_comment.yaml new file mode 100644 index 000000000..5514f7256 --- /dev/null +++ b/.github/workflows/issue_comment.yaml @@ -0,0 +1,16 @@ +name: issue-comment-workflow +on: issue_comment + +jobs: + pr-comment: + if: ${{ github.event.issue.pull_request }} + runs-on: ubuntu-latest + steps: + - name: pr comment + run: echo ${{ github.event.issue.pull_request }} + issue-comment: + if: ${{ !github.event.issue.pull_request }} + runs-on: ubuntu-latest + steps: + - name: issue comment + run: echo ${{ github.event.issue.pull_request }} \ No newline at end of file diff --git a/.github/workflows/issue.yaml b/.github/workflows/part1/issue.yaml similarity index 100% rename from .github/workflows/issue.yaml rename to .github/workflows/part1/issue.yaml From 5ea379f38d957c56f703afc8e5b1f7386641e6bd Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Tue, 17 Jun 2025 22:28:42 +0900 Subject: [PATCH 08/63] Add workflow_dispatch.yaml --- .../workflows/{ => part1}/issue_comment.yaml | 0 .github/workflows/workflow_diapatch.yaml | 32 +++++++++++++++++++ 2 files changed, 32 insertions(+) rename .github/workflows/{ => part1}/issue_comment.yaml (100%) create mode 100644 .github/workflows/workflow_diapatch.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/workflow_diapatch.yaml b/.github/workflows/workflow_diapatch.yaml new file mode 100644 index 000000000..b3e53405d --- /dev/null +++ b/.github/workflows/workflow_diapatch.yaml @@ -0,0 +1,32 @@ +name: workflow-dispatch +on: + workflow_dispatch: + inputs: + name: + description: 'set name'' + required: true + default: 'github-actions' + 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 f995467aabdfd8e614376b7c2c041d23e577b5cc Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Tue, 17 Jun 2025 22:31:18 +0900 Subject: [PATCH 09/63] Add workflow_dispatch.yaml --- .github/workflows/workflow_diapatch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow_diapatch.yaml b/.github/workflows/workflow_diapatch.yaml index b3e53405d..64f9deede 100644 --- a/.github/workflows/workflow_diapatch.yaml +++ b/.github/workflows/workflow_diapatch.yaml @@ -3,7 +3,7 @@ on: workflow_dispatch: inputs: name: - description: 'set name'' + description: 'set name' required: true default: 'github-actions' type: string From f27708c7f80db7cf01bd964ac771f77a432b10f1 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Tue, 17 Jun 2025 22:31:50 +0900 Subject: [PATCH 10/63] Add workflow_dispatch.yaml --- .github/workflows/workflow_diapatch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow_diapatch.yaml b/.github/workflows/workflow_diapatch.yaml index 64f9deede..d648ff06d 100644 --- a/.github/workflows/workflow_diapatch.yaml +++ b/.github/workflows/workflow_diapatch.yaml @@ -10,7 +10,7 @@ on: environment: description: 'set env' required: true - default: 'dev'' + default: 'dev' type: choice options: - dev From 0952dc544933d3cde4117b3c81ee61966fd652e6 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Tue, 17 Jun 2025 22:35:49 +0900 Subject: [PATCH 11/63] Add multiple-event.yaml --- .github/workflows/multiple_event.yaml | 18 ++++++++++++++++++ .../{ => part1}/workflow_diapatch.yaml | 0 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/multiple_event.yaml rename .github/workflows/{ => part1}/workflow_diapatch.yaml (100%) diff --git a/.github/workflows/multiple_event.yaml b/.github/workflows/multiple_event.yaml new file mode 100644 index 000000000..f2caf2094 --- /dev/null +++ b/.github/workflows/multiple_event.yaml @@ -0,0 +1,18 @@ +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 \ No newline at end of file diff --git a/.github/workflows/workflow_diapatch.yaml b/.github/workflows/part1/workflow_diapatch.yaml similarity index 100% rename from .github/workflows/workflow_diapatch.yaml rename to .github/workflows/part1/workflow_diapatch.yaml From 65bc99180d6a45a64252f46b3168f64a0397292c Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Tue, 17 Jun 2025 22:40:58 +0900 Subject: [PATCH 12/63] Add needs.yaml --- .github/workflows/needs.yaml | 28 +++++++++++++++++++ .../workflows/{ => part1}/multiple_event.yaml | 0 2 files changed, 28 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..eba119ecb --- /dev/null +++ b/.github/workflows/needs.yaml @@ -0,0 +1,28 @@ +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" 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 96731ccc7380c83f3d040b8f2ac0c1199b2d6d09 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Tue, 17 Jun 2025 22:54:19 +0900 Subject: [PATCH 13/63] Add checkout.yaml --- .github/workflows/checkout.yaml | 16 ++++++++++++++++ .github/workflows/{ => part1}/needs.yaml | 0 2 files changed, 16 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..7cfda83ee --- /dev/null +++ b/.github/workflows/checkout.yaml @@ -0,0 +1,16 @@ +name: checkout +on: workflow_dispatch + +jobs: + no-checkout: + runs-on: ubuntu-latest + steps: + - name: check file list + run: cat README.md + checkout: + runs-on: ubuntu-latest + steps: + - name: use checkout action + uses: actions/checkout@v4 + - name: check file list + run: cat README.md 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 d835061740c869e0d1cf1e79846097d5e74d5265 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:21:40 +0900 Subject: [PATCH 14/63] Add context.yaml --- .github/workflows/context.yaml | 9 +++++++++ .github/workflows/{ => part2}/checkout.yaml | 0 2 files changed, 9 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..74f7a91bc --- /dev/null +++ b/.github/workflows/context.yaml @@ -0,0 +1,9 @@ +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 11892c0ae1fb3d3b5134b2e81afe981aeba918b0 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:23:43 +0900 Subject: [PATCH 15/63] Add context.yaml --- .github/workflows/context.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/context.yaml b/.github/workflows/context.yaml index 74f7a91bc..9a642a8d0 100644 --- a/.github/workflows/context.yaml +++ b/.github/workflows/context.yaml @@ -6,4 +6,8 @@ jobs: runs-on: ubuntu-latest steps: - name: github context - run: echo '${{ toJSON(github) }}' \ No newline at end of file + run: echo '${{ toJSON(github) }}' + - name: check github context + run: | + echo ${{ github.repository }} + echo ${{ github.event_name }} \ No newline at end of file From f07760eb0d2e5f7f662ab993c4a86a1777b45c50 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:26:10 +0900 Subject: [PATCH 16/63] Add filter.yaml --- .github/workflows/branch_filter.yaml | 10 ++++++++++ .github/workflows/{ => part2}/context.yaml | 0 2 files changed, 10 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..3da8fd450 --- /dev/null +++ b/.github/workflows/branch_filter.yaml @@ -0,0 +1,10 @@ +name: branch-filter +on: + push: + branches: ["dev"] +jobs: + branch-filter: + runs-on: ubuntu-latest + steps: + - name: echo + run: echo hello \ No newline at end of file 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 e897ad490f4fee433c5c6d8799d2d9e8a9983f43 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:26:29 +0900 Subject: [PATCH 17/63] Add filter.yaml --- .github/workflows/branch_filter.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/branch_filter.yaml b/.github/workflows/branch_filter.yaml index 3da8fd450..5a2aeb1f2 100644 --- a/.github/workflows/branch_filter.yaml +++ b/.github/workflows/branch_filter.yaml @@ -1,7 +1,7 @@ name: branch-filter on: push: - branches: ["dev"] + branches: ["dev-test"] jobs: branch-filter: runs-on: ubuntu-latest From 3a060d81ef2a848d799a8d3a0b99971833d2fae7 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:26:52 +0900 Subject: [PATCH 18/63] Add filter.yaml --- .github/workflows/branch_filter.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/branch_filter.yaml b/.github/workflows/branch_filter.yaml index 5a2aeb1f2..3da8fd450 100644 --- a/.github/workflows/branch_filter.yaml +++ b/.github/workflows/branch_filter.yaml @@ -1,7 +1,7 @@ name: branch-filter on: push: - branches: ["dev-test"] + branches: ["dev"] jobs: branch-filter: runs-on: ubuntu-latest From 9f61e1bd1dbe0416b4965b77d7c3033f17dd35ff Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:29:23 +0900 Subject: [PATCH 19/63] Add path_filter.yaml --- .github/workflows/{ => part1}/branch_filter.yaml | 0 .github/workflows/path_filter.yaml | 11 +++++++++++ 2 files changed, 11 insertions(+) rename .github/workflows/{ => part1}/branch_filter.yaml (100%) create mode 100644 .github/workflows/path_filter.yaml diff --git a/.github/workflows/branch_filter.yaml b/.github/workflows/part1/branch_filter.yaml similarity index 100% rename from .github/workflows/branch_filter.yaml rename to .github/workflows/part1/branch_filter.yaml diff --git a/.github/workflows/path_filter.yaml b/.github/workflows/path_filter.yaml new file mode 100644 index 000000000..7c27e339d --- /dev/null +++ b/.github/workflows/path_filter.yaml @@ -0,0 +1,11 @@ +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 9695bd7eb9910121beb02a90ed64d4ae38588178 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:30:25 +0900 Subject: [PATCH 20/63] 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 3cfb4061b..236473d2d 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: From 9bf9086844b1d90d85ad6d0e0a05dc3b316cc232 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:31:27 +0900 Subject: [PATCH 21/63] 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 7c27e339d..e00e0e03b 100644 --- a/.github/workflows/path_filter.yaml +++ b/.github/workflows/path_filter.yaml @@ -2,6 +2,7 @@ name: path_filter on: push: paths: + - '!.github/workflows/part1/push.yaml' - '.github/workflows/part1/*' jobs: path_filter: From 3adf3227c70f7a9c67e0759e5b45bc7df1037d38 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:31:45 +0900 Subject: [PATCH 22/63] 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 236473d2d..3cfb4061b 100644 --- a/.github/workflows/part1/push.yaml +++ b/.github/workflows/part1/push.yaml @@ -1,4 +1,4 @@ -name: push-workflow 1 +name: push-workflow on: push jobs: From f6fc3aabd7da76de62c56c3aa59dfa2ad882df39 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:32:20 +0900 Subject: [PATCH 23/63] 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 fee5ed71f..f69c3c8cf 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] From f18b22c6c43e1806af788f659043231870403b9b Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:49:36 +0900 Subject: [PATCH 24/63] Add tag-filter.yaml --- .github/workflows/{ => part2}/path_filter.yaml | 0 .github/workflows/tag_filter.yaml | 11 +++++++++++ 2 files changed, 11 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..7891e98fa --- /dev/null +++ b/.github/workflows/tag_filter.yaml @@ -0,0 +1,11 @@ +name: tag-filter +on: + push: + tags: + - 'v[0-9]+.[0-9].[0-9]+' +jobs: + tag-filter: + runs-on: ubuntu-latest + steps: + - name: echo hello + run: echo hello \ No newline at end of file From d7d144d813247be719e81ca950027d521214e5db Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:56:25 +0900 Subject: [PATCH 25/63] Add timeout.yaml --- .github/workflows/{ => part2}/tag_filter.yaml | 0 .github/workflows/timeout.yaml | 17 +++++++++++++++++ 2 files changed, 17 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..ed354f1cd --- /dev/null +++ b/.github/workflows/timeout.yaml @@ -0,0 +1,17 @@ +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" + sleep 1 + done + - name: echo + run: echo hello \ No newline at end of file From 048b96b5f7a5722b980dd8f6e113fa567e6231ac Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 17:59:08 +0900 Subject: [PATCH 26/63] Add timeout.yaml --- .github/workflows/timeout.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/timeout.yaml b/.github/workflows/timeout.yaml index ed354f1cd..f8492bf20 100644 --- a/.github/workflows/timeout.yaml +++ b/.github/workflows/timeout.yaml @@ -11,7 +11,9 @@ jobs: count=0 while true; do echo "seconds: $count" + count=$((count+1)) sleep 1 done + timeout-minutes: 1 - name: echo run: echo hello \ No newline at end of file From b3e884733ff51ddbba61b7f883fd5ba7e1aa5daf Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 18:09:17 +0900 Subject: [PATCH 27/63] Add cache.yaml --- .github/workflows/{ => part2}/timeout.yaml | 0 my-app/src/App.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{ => part2}/timeout.yaml (100%) 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 0e09ab56475f8eed4ff3a16c8ef585de64337ead Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 18:09:51 +0900 Subject: [PATCH 28/63] 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 d6e103c1bfb200c2b6e4fa0463b6a94f72655717 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 18:12:16 +0900 Subject: [PATCH 29/63] Add cache.yaml --- .github/workflows/cache.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/cache.yaml diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml new file mode 100644 index 000000000..e1253cb20 --- /dev/null +++ b/.github/workflows/cache.yaml @@ -0,0 +1,30 @@ +name: cache +on: + push: + paths: + - 'my-app/**' +jobs: + cache: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: setup-node + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Cache Node.js modules + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/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 build \ No newline at end of file From 3b113ea7d3da6db86ef9526907a0f42e20e03e8c Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 18:12:41 +0900 Subject: [PATCH 30/63] 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 a04541f3c..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 + Learn GithubAction1 From 42496cbae6f5025bc2ff7403985f61baa165752a Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 18:13:34 +0900 Subject: [PATCH 31/63] 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..410f50e62 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 2 From 6ef75a4e2fc887c77b58b6d9536642a26d261dda Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 18:21:20 +0900 Subject: [PATCH 32/63] 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..6ef4d59b6 --- /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 + path: ./hello.txt + + download-artifact: + runs-on: ubuntu-latest + needs: [upload-artifact] + steps: + - name: download artifact + uses: actions/download-artifact@v3 + with: + name: artifact-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 12b2004e75ba10ee52d03daf80953133c79f4336 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 18:22:36 +0900 Subject: [PATCH 33/63] Add artifact.yaml --- .github/workflows/artifact.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifact.yaml b/.github/workflows/artifact.yaml index 6ef4d59b6..d6bab6dd8 100644 --- a/.github/workflows/artifact.yaml +++ b/.github/workflows/artifact.yaml @@ -7,8 +7,9 @@ jobs: steps: - name: echo run: echo hello-world > hello.txt + - name: upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifact-test path: ./hello.txt @@ -18,9 +19,10 @@ jobs: needs: [upload-artifact] steps: - name: download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifact-test path: ./ + - name: check run: cat hello.txt \ No newline at end of file From 92e5e208c4004115e85b8f81a85a141c0130a5ed Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Fri, 20 Jun 2025 18:36:24 +0900 Subject: [PATCH 34/63] Add output.yaml --- .github/workflows/output.yaml | 13 +++++++++++++ .github/workflows/{ => part2}/artifact.yaml | 0 2 files changed, 13 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..0c8e1fe48 --- /dev/null +++ b/.github/workflows/output.yaml @@ -0,0 +1,13 @@ +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 1552a072c2da569a7633d1a71c834ad02147b121 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:03:29 +0900 Subject: [PATCH 35/63] 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 0c8e1fe48..cbd0afd02 100644 --- a/.github/workflows/output.yaml +++ b/.github/workflows/output.yaml @@ -3,6 +3,8 @@ on: push jobs: create-output: runs-on: ubuntu-latest + outputs: + test: ${{ steps.check-output.outputs.test }} steps: - name: echo output id: check-output @@ -11,3 +13,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 ${{ steps.create-output.outputs.test }} + From 196b65940637b283fb45742cf4859a58949556fa Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:10:02 +0900 Subject: [PATCH 36/63] Add var-1.yaml --- .github/workflows/{ => part2}/output.yaml | 0 .github/workflows/var-1.yaml | 37 +++++++++++++++++++++++ 2 files changed, 37 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..6d46e959f --- /dev/null +++ b/.github/workflows/var-1.yaml @@ -0,0 +1,37 @@ +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: step + + get-env: + runs-on: ubuntu-latest + steps: + - name: create env + run: echo "level=job" >> $GITHUB_ENV + - name: check env + run: echo "LEVEL ${{ env.level }}" \ No newline at end of file From 439fbcf7fa597612ec3ce3d56b2bf6bfc75f6504 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:10:36 +0900 Subject: [PATCH 37/63] Add var-1.yaml --- .github/workflows/var-1.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/var-1.yaml b/.github/workflows/var-1.yaml index 6d46e959f..f77d381a9 100644 --- a/.github/workflows/var-1.yaml +++ b/.github/workflows/var-1.yaml @@ -26,7 +26,8 @@ jobs: steps: - name: check env run: echo "LEVEL ${{ env.level }}" - env: step + env: + level: step get-env: runs-on: ubuntu-latest From e0adb7aa74a4bee3038b94e615f8ddf104877714 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:13:31 +0900 Subject: [PATCH 38/63] 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..2face9e83 --- /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 82ddfb2d48c8cdacb3f5444c8d235eadc45101ff Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:17:33 +0900 Subject: [PATCH 39/63] Add secrets.yaml --- .github/workflows/{ => part2}/var-2.yaml | 0 .github/workflows/secrests.yaml | 9 +++++++++ 2 files changed, 9 insertions(+) rename .github/workflows/{ => part2}/var-2.yaml (100%) create mode 100644 .github/workflows/secrests.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/secrests.yaml b/.github/workflows/secrests.yaml new file mode 100644 index 000000000..57e40613d --- /dev/null +++ b/.github/workflows/secrests.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 567516a56237ca01d0d0212ae9ec613dc89b3d1f Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:28:49 +0900 Subject: [PATCH 40/63] Add environment.yaml --- .github/workflows/environment.yaml | 11 +++++++++++ .github/workflows/{ => part2}/secrests.yaml | 0 2 files changed, 11 insertions(+) create mode 100644 .github/workflows/environment.yaml rename .github/workflows/{ => part2}/secrests.yaml (100%) diff --git a/.github/workflows/environment.yaml b/.github/workflows/environment.yaml new file mode 100644 index 000000000..aa339eaea --- /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 ${{ secrets.level }} + echo ${{ vars.level }} \ No newline at end of file diff --git a/.github/workflows/secrests.yaml b/.github/workflows/part2/secrests.yaml similarity index 100% rename from .github/workflows/secrests.yaml rename to .github/workflows/part2/secrests.yaml From bcef61d19951c4d52cced974db886b22c83a8f1c Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:33:04 +0900 Subject: [PATCH 41/63] Add environment.yaml --- .github/workflows/environment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/environment.yaml b/.github/workflows/environment.yaml index aa339eaea..39e5ead53 100644 --- a/.github/workflows/environment.yaml +++ b/.github/workflows/environment.yaml @@ -4,6 +4,14 @@ on: push jobs: get-env: runs-on: ubuntu-latest + steps: + - name: check env & secret + run: | + echo ${{ secrets.level }} + echo ${{ vars.level }} + get-env-dev: + runs-on: ubuntu-latest + environment: dev steps: - name: check env & secret run: | From e7345a5156be9b111369a6826326825e9094a115 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:40:37 +0900 Subject: [PATCH 42/63] Add matrix.yaml --- .github/matrix.yaml | 15 +++++++++++++++ .github/workflows/{ => part2}/environment.yaml | 0 2 files changed, 15 insertions(+) create mode 100644 .github/matrix.yaml rename .github/workflows/{ => part2}/environment.yaml (100%) diff --git a/.github/matrix.yaml b/.github/matrix.yaml new file mode 100644 index 000000000..c2885b07e --- /dev/null +++ b/.github/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 }} 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 fa5974b46c8a22a47b5e6a7faecccec1263a0bd9 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:42:04 +0900 Subject: [PATCH 43/63] Add matrix.yaml --- .github/{ => workflows}/matrix.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/matrix.yaml (100%) diff --git a/.github/matrix.yaml b/.github/workflows/matrix.yaml similarity index 100% rename from .github/matrix.yaml rename to .github/workflows/matrix.yaml From 21816dd9153eb40524aa7aa42cd427d476e75b6a Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:47:13 +0900 Subject: [PATCH 44/63] 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..12764628f --- /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 }} 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 4ce6953bd379d3d122c920e69bc81082a2b89760 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:49:04 +0900 Subject: [PATCH 45/63] 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 12764628f..a295559a4 100644 --- a/.github/workflows/if-1.yaml +++ b/.github/workflows/if-1.yaml @@ -17,3 +17,12 @@ 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" From 4892276238cec1c10eb5c15dee3baefb2c9df502 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:52:57 +0900 Subject: [PATCH 46/63] Add if-2.yaml --- .github/workflows/if-2.yaml | 20 ++++++++++++++++++++ .github/workflows/{ => part2}/if-1.yaml | 0 2 files changed, 20 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..59d510047 --- /dev/null +++ b/.github/workflows/if-2.yaml @@ -0,0 +1,20 @@ +name: if-1\2 +on: + push: + workflow_dispatch: + + +jobs: + job1: + runs-on: ubuntu-latest + steps: + - name: exit1 + run: exit1 + - 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 6454a821d03aab2b060402c006fb53c5377921e5 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:53:51 +0900 Subject: [PATCH 47/63] 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 59d510047..3f2086fe8 100644 --- a/.github/workflows/if-2.yaml +++ b/.github/workflows/if-2.yaml @@ -15,6 +15,7 @@ jobs: job2: needs: [job1] runs-on: ubuntu-latest + if: always() steps: - name: echo run: echo hello \ No newline at end of file From d167bb51104c342c4363acc336b7028dfe01e350 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:54:25 +0900 Subject: [PATCH 48/63] 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 3f2086fe8..d21bbf6be 100644 --- a/.github/workflows/if-2.yaml +++ b/.github/workflows/if-2.yaml @@ -11,6 +11,7 @@ jobs: - name: exit1 run: exit1 - name: echo + if: always() run: echo hello job2: needs: [job1] From cb081c95d6c39481f3e3d3a435cd31e486972fdb Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 17:59:48 +0900 Subject: [PATCH 49/63] Add if-2.yaml --- .github/workflows/{ => part2}/if-2.yaml | 0 .github/workflows/string-function.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 25 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..2798d8447 --- /dev/null +++ b/.github/workflows/string-function.yaml @@ -0,0 +1,25 @@ +name: string-function +on: push +jobs: + string-function: + runs-on: ubuntu-latest + steps: + - name: startswith + if: startWith('github actions', 'git') + run: echo "git" + - name: startswith + if: startWith('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 cbf0aa3c9d1fbb6b4327ac83a0c8ca17cd51ea9a Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 18:01:17 +0900 Subject: [PATCH 50/63] Add if-2.yaml --- .github/workflows/string-function.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/string-function.yaml b/.github/workflows/string-function.yaml index 2798d8447..e97f4d908 100644 --- a/.github/workflows/string-function.yaml +++ b/.github/workflows/string-function.yaml @@ -5,9 +5,9 @@ jobs: runs-on: ubuntu-latest steps: - name: startswith - if: startWith('github actions', 'git') + if: startsWith('github actions', 'git') run: echo "git" - - name: startswith + - name: startsswith if: startWith('github actions', 'test') run: echo "test" - name: endswith From b3f77e30a9de3bc12ac91c44cb3fdfbb0d2ad3fe Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 18:50:25 +0900 Subject: [PATCH 51/63] Add if-2.yaml --- .github/workflows/string-function.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/string-function.yaml b/.github/workflows/string-function.yaml index e97f4d908..edec74ce6 100644 --- a/.github/workflows/string-function.yaml +++ b/.github/workflows/string-function.yaml @@ -8,7 +8,7 @@ jobs: if: startsWith('github actions', 'git') run: echo "git" - name: startsswith - if: startWith('github actions', 'test') + if: startsWith('github actions', 'test') run: echo "test" - name: endswith if: endsWith('github actions', 'ions') From c0dd295a770d6aecb6a2ecc0c635143ea9313987 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 19:51:41 +0900 Subject: [PATCH 52/63] Add create_repo.yaml --- .github/workflows/create_repo.yaml | 26 +++++++++++++++++++ .../{ => part2}/string-function.yaml | 0 2 files changed, 26 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..e7a152fa3 --- /dev/null +++ b/.github/workflows/create_repo.yaml @@ -0,0 +1,26 @@ +name: create-repo +on: + workflow_dispatch: + inputs: + prefix: + description: 'set repo prefix' + required: true + type: choice + options: + - example + - service + name: + description: 'set repo name' + required: true + default: 'github-actions' + type: string +jobs: + 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 sini-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 71c07138c48d8ddf66e436104f5dd0a900b610b5 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 19:52:43 +0900 Subject: [PATCH 53/63] 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 e7a152fa3..4f8b4be67 100644 --- a/.github/workflows/create_repo.yaml +++ b/.github/workflows/create_repo.yaml @@ -23,4 +23,4 @@ jobs: echo ${{ secrets.PERSONAL_ACCESS_TOKEN }} | gh auth login --with-token - name: create-repo run: | - gh repo create sini-action/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme \ No newline at end of file + gh repo create sini-aciton/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme \ No newline at end of file From 91e16a417f4f5088ab5437e36c4078cfa39748ce Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 19:59:25 +0900 Subject: [PATCH 54/63] 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 4f8b4be67..9c45b3ac6 100644 --- a/.github/workflows/create_repo.yaml +++ b/.github/workflows/create_repo.yaml @@ -22,5 +22,29 @@ jobs: run: | echo ${{ secrets.PERSONAL_ACCESS_TOKEN }} | gh auth login --with-token - name: create-repo + id: create-repo run: | - gh repo create sini-aciton/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme \ No newline at end of file + gh repo create sini-aciton/${{ 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 1c7832c64387040ba90d67ad0476c4a1735e3f41 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 20:32:40 +0900 Subject: [PATCH 55/63] Add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 23 +++++++++++++++++++ .../workflows/{ => part3}/create_repo.yaml | 0 keyword-list.txt | 2 ++ 3 files changed, 25 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..0f8e99c62 --- /dev/null +++ b/.github/workflows/issue_notify.yaml @@ -0,0 +1,23 @@ +name: create-repo +on: + issues: + types: [opened] +jobs: + get-keyword: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: get-keyword + run: | + echo level=Undefined >> $GITHUB_OUTPUT + + keyword=$(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 2489d70c44da5eed46a818edbcdc559def7819b8 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 20:35:25 +0900 Subject: [PATCH 56/63] Add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/issue_notify.yaml index 0f8e99c62..eaa7b27c9 100644 --- a/.github/workflows/issue_notify.yaml +++ b/.github/workflows/issue_notify.yaml @@ -5,6 +5,8 @@ on: jobs: get-keyword: runs-on: ubuntu-latest + outputs: + level: ${{ steps.get-keyword.outputs.level }} steps: - name: checkout uses: actions/checkout@v4 From 4337cfd8ef2de8822c460fd940244911551ff6c6 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 20:37:46 +0900 Subject: [PATCH 57/63] 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 eaa7b27c9..d1328ed70 100644 --- a/.github/workflows/issue_notify.yaml +++ b/.github/workflows/issue_notify.yaml @@ -14,9 +14,9 @@ jobs: run: | echo level=Undefined >> $GITHUB_OUTPUT - keyword=$(cat keyword-list.txt) + keywords=$(cat keyword-list.txt) for keyword in $keywords; do - if [[ "${{ github.event.issue.title }}" =~ "$keyword" ]] ; then + if [[ "${{ github.event.issue.title }}" =~ "$keyword" ]]; then echo level=$keyword >> $GITHUB_OUTPUT fi done From 51b1674a6a1d46e934e132eb446c76228bd64a1c Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 20:39:18 +0900 Subject: [PATCH 58/63] Add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/issue_notify.yaml index d1328ed70..f4b238ae7 100644 --- a/.github/workflows/issue_notify.yaml +++ b/.github/workflows/issue_notify.yaml @@ -16,8 +16,13 @@ jobs: keywords=$(cat keyword-list.txt) for keyword in $keywords; do - if [[ "${{ github.event.issue.title }}" =~ "$keyword" ]]; then - echo level=$keyword >> $GITHUB_OUTPUT + echo "level=Undefined" >> $GITHUB_OUTPUT + + keywords=$(cat keyword-list.txt) + for keyword in $keywords; do + if [[ "$ISSUE_TITLE" == *"$keyword"* ]]; then + echo "level=$keyword" >> $GITHUB_OUTPUT + break fi done - name: get output From e25744deee2d12277fe5b1abb63196b1a465b762 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 20:41:03 +0900 Subject: [PATCH 59/63] Add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/issue_notify.yaml index f4b238ae7..591b666eb 100644 --- a/.github/workflows/issue_notify.yaml +++ b/.github/workflows/issue_notify.yaml @@ -11,18 +11,14 @@ jobs: - 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 - echo "level=Undefined" >> $GITHUB_OUTPUT - - keywords=$(cat keyword-list.txt) - for keyword in $keywords; do - if [[ "$ISSUE_TITLE" == *"$keyword"* ]]; then - echo "level=$keyword" >> $GITHUB_OUTPUT - break + if [[ "${{ github.event.issue.title }}" =~ "$keyword" ]]; then + echo level=$keyword >> $GITHUB_OUTPUT fi done - name: get output From 5e91e51be764770267767d5a7aaf80fd72bed4e7 Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Sat, 21 Jun 2025 20:45:27 +0900 Subject: [PATCH 60/63] Add issue_notify.yaml --- .github/workflows/issue_notify.yaml | 30 ++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue_notify.yaml b/.github/workflows/issue_notify.yaml index 591b666eb..04a91cfe7 100644 --- a/.github/workflows/issue_notify.yaml +++ b/.github/workflows/issue_notify.yaml @@ -23,4 +23,32 @@ 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": "create repo result ${{ needs.get-keyword.outputs.level }}", + "short": true, + "value": "issue url : ${{ github.event.issue.html_url }}" + } + ] + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file From 2fccfd5a9dcde9d11967e29c25f42a751fdcc65b Mon Sep 17 00:00:00 2001 From: shinhee818 Date: Tue, 24 Jun 2025 22:33:09 +0900 Subject: [PATCH 61/63] Add cicd-1.yaml --- .github/workflows/cicd-1.yaml | 28 +++++++++++++++++++ .../workflows/{ => part3}/issue_notify.yaml | 0 2 files changed, 28 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..5031957ea --- /dev/null +++ b/.github/workflows/cicd-1.yaml @@ -0,0 +1,28 @@ +name: cicd-1 +on: + pull_request: + types: [opened,synchronize,closed] + branches: [dev] + paths: + - 'my-app/**' +jobs: + test: + if: github.event.action == 'opened' || github.event.action == 'synchronize' + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + image-build: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + deploy: + 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 57b1bdc6a9764b8a8d11c0d292d00721f3b21507 Mon Sep 17 00:00:00 2001 From: shinhee818 <153713451+shinhee818@users.noreply.github.com> Date: Tue, 24 Jun 2025 22:34:51 +0900 Subject: [PATCH 62/63] 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 410f50e62..daf222af7 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 2 + Learn GithubAction cicd test From 238148381a1dd4b09c3296da37548ae229ca22bb Mon Sep 17 00:00:00 2001 From: shinhee818 <153713451+shinhee818@users.noreply.github.com> Date: Tue, 24 Jun 2025 22:37:04 +0900 Subject: [PATCH 63/63] 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 daf222af7..7cbc32dbd 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 test + Learn GithubAction cicd test2