Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
6e245f3
Create push.yaml
drinkgalaxy Oct 27, 2024
7ebb135
Update push.yaml
drinkgalaxy Oct 27, 2024
4d18345
Update push.yaml
drinkgalaxy Oct 27, 2024
13455e6
Update push.yaml
drinkgalaxy Oct 27, 2024
e42b252
Update push.yaml
drinkgalaxy Oct 27, 2024
e36a74d
Rename .github/workflows/push.yaml to .github/workflows/part1/push.yaml
drinkgalaxy Oct 27, 2024
e6d3c1a
Create pull_request.yaml
drinkgalaxy Oct 27, 2024
553a6a4
Update push.yaml
drinkgalaxy Oct 27, 2024
1c4bd2d
Update push.yaml
drinkgalaxy Oct 27, 2024
aaff945
Rename .github/workflows/pull_request.yaml to .github/workflows/part1…
drinkgalaxy Oct 27, 2024
bb6fba6
Create issue.yaml
drinkgalaxy Oct 27, 2024
5c144d7
Rename .github/workflows/issue.yaml to .github/workflows/part1/issue.…
drinkgalaxy Oct 27, 2024
47f99b2
Create issue_comment.yaml
drinkgalaxy Oct 27, 2024
6fec8e6
Update issue_comment.yaml
drinkgalaxy Oct 27, 2024
136b192
Rename .github/workflows/issue_comment.yaml to .github/workflows/part…
drinkgalaxy Oct 27, 2024
64f39df
Create workflow_dispatch.yaml
drinkgalaxy Oct 27, 2024
3c4d464
Rename .github/workflows/part1/workflow_dispatch.yaml to .github/work…
drinkgalaxy Oct 27, 2024
cf54226
Rename .github/workflows/workflow_dispatch.yaml to .github/workflows/…
drinkgalaxy Oct 27, 2024
fa701fe
Create multiple_event.yaml
drinkgalaxy Oct 27, 2024
88ed9f1
Rename .github/workflows/multiple_event.yaml to .github/workflows/par…
drinkgalaxy Oct 27, 2024
ba511bc
Create needs.yaml
drinkgalaxy Oct 27, 2024
076738d
Rename .github/workflows/needs.yaml to .github/workflows/part1/needs.…
drinkgalaxy Oct 28, 2024
a9cb1ec
Create checkout.yaml
drinkgalaxy Oct 28, 2024
58b9b0e
Rename .github/workflows/part1/checkout.yaml to .github/workflows/che…
drinkgalaxy Oct 28, 2024
d77a07d
Rename .github/workflows/checkout.yaml to .github/workflows/part2/che…
drinkgalaxy Oct 28, 2024
bcb3910
Create context.yaml
drinkgalaxy Oct 29, 2024
fa4dd0c
Update context.yaml
drinkgalaxy Oct 29, 2024
3491b74
Rename .github/workflows/context.yaml to .github/workflows/part2/cont…
drinkgalaxy Oct 29, 2024
6fefda9
Create branch_filter.yaml
drinkgalaxy Oct 29, 2024
a1eb426
Update branch_filter.yaml
drinkgalaxy Oct 29, 2024
0bbdf66
Update branch_filter.yaml
drinkgalaxy Oct 29, 2024
75afc07
Rename .github/workflows/branch_filter.yaml to .github/workflows/part…
drinkgalaxy Oct 29, 2024
8d0e6ef
Create path_filter.yaml
drinkgalaxy Oct 29, 2024
a96487d
Update push.yaml
drinkgalaxy Oct 29, 2024
4f52da9
Update path_filter.yaml
drinkgalaxy Oct 29, 2024
79d3e90
Update push.yaml
drinkgalaxy Oct 29, 2024
f953a92
Update pull_request.yaml
drinkgalaxy Oct 29, 2024
f5462f0
Rename .github/workflows/path_filter.yaml to .github/workflows/part2/…
drinkgalaxy Oct 29, 2024
3c31eb7
Create tag_filter.yaml
drinkgalaxy Oct 29, 2024
a7ee47a
Update tag_filter.yaml
drinkgalaxy Oct 29, 2024
737b116
Rename .github/workflows/tag_filter.yaml to .github/workflows/part2/t…
drinkgalaxy Oct 29, 2024
a847286
Create cache.yaml
drinkgalaxy Oct 29, 2024
3848c76
Update App.js
drinkgalaxy Oct 29, 2024
13621bd
Update cache.yaml
drinkgalaxy Oct 29, 2024
3572c62
Update App.js
drinkgalaxy Oct 29, 2024
75081dc
Update cache.yaml
drinkgalaxy Oct 29, 2024
3361131
Update App.js
drinkgalaxy Oct 29, 2024
c965e13
Update cache.yaml
drinkgalaxy Oct 29, 2024
2633982
Update App.js
drinkgalaxy Oct 29, 2024
e155462
Rename .github/workflows/cache.yaml to .github/workflows/part2/cache.…
drinkgalaxy Nov 1, 2024
76cd9bf
Create artifact.yaml
drinkgalaxy Nov 1, 2024
9c25ff9
Update artifact.yaml
drinkgalaxy Nov 1, 2024
0e48c30
Rename .github/workflows/artifact.yaml to .github/workflows/part2/art…
drinkgalaxy Nov 1, 2024
c6e974c
Create output.yaml
drinkgalaxy Nov 1, 2024
f0c9dba
Update output.yaml
drinkgalaxy Nov 1, 2024
2c7e5d2
Rename .github/workflows/output.yaml to .github/workflows/part2/outpu…
drinkgalaxy Nov 1, 2024
17caee1
Create var-1.yaml
drinkgalaxy Nov 1, 2024
60607b4
Rename .github/workflows/var-1.yaml to .github/workflows/part2/var-1.…
drinkgalaxy Nov 1, 2024
a545ccb
Create var-2.yaml
drinkgalaxy Nov 1, 2024
2abafe9
Rename .github/workflows/var-2.yaml to .github/workflows/part2/var-2.…
drinkgalaxy Nov 1, 2024
cbfff53
Create secrets.yaml
drinkgalaxy Nov 4, 2024
63c469e
Rename .github/workflows/secrets.yaml to .github/workflows/part2/secr…
drinkgalaxy Nov 4, 2024
129c635
Create environment.yaml
drinkgalaxy Nov 4, 2024
6e98fa7
Update environment.yaml
drinkgalaxy Nov 4, 2024
4e703fa
Rename .github/workflows/environment.yaml to .github/workflows/part2/…
drinkgalaxy Nov 4, 2024
ac0db5d
Create matrix.yaml
drinkgalaxy Nov 4, 2024
b86471f
Rename .github/workflows/matrix.yaml to .github/workflows/part2/matri…
drinkgalaxy Nov 4, 2024
87cc705
Create if-1.yaml
drinkgalaxy Nov 4, 2024
e7b011b
Update if-1.yaml
drinkgalaxy Nov 4, 2024
435a761
Rename .github/workflows/if-1.yaml to .github/workflows/part2/if-1.yaml
drinkgalaxy Nov 4, 2024
34bf785
Create if-2.yaml
drinkgalaxy Nov 4, 2024
b07b37b
Update if-2.yaml
drinkgalaxy Nov 4, 2024
6d18457
Update if-2.yaml
drinkgalaxy Nov 4, 2024
8f8a2cf
Update if-2.yaml
drinkgalaxy Nov 4, 2024
bfc9135
Rename .github/workflows/if-2.yaml to .github/workflows/part2/if-2.yaml
drinkgalaxy Nov 4, 2024
762489a
Create string-function.yaml
drinkgalaxy Nov 4, 2024
dee8835
Rename .github/workflows/string-function.yaml to .github/workflows/pa…
drinkgalaxy Nov 4, 2024
63b17ce
Create create_repo.yaml
drinkgalaxy Nov 5, 2024
71670c4
Update create_repo.yaml
drinkgalaxy Nov 5, 2024
6169a71
Update create_repo.yaml
drinkgalaxy Nov 5, 2024
1da9741
Update create_repo.yaml
drinkgalaxy Nov 5, 2024
42d254f
Update create_repo.yaml
drinkgalaxy Nov 5, 2024
49be54f
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
b4b228e
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
970458f
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
7c17865
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
76de51e
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
d125674
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
0d376cf
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
c3f2d87
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
afdc159
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
99907b4
Update create_repo.yaml
drinkgalaxy Nov 6, 2024
47235eb
Create keyword-list.txt
drinkgalaxy Nov 7, 2024
d45796e
Rename .github/workflows/create_repo.yaml to .github/workflows/part2/…
drinkgalaxy Nov 7, 2024
cc685b1
Create issue_notify.yaml
drinkgalaxy Nov 7, 2024
8aef571
Update issue_notify.yaml
drinkgalaxy Nov 7, 2024
6170048
Update issue_notify.yaml
drinkgalaxy Nov 7, 2024
38b15b1
Update issue_notify.yaml
drinkgalaxy Nov 7, 2024
15d829a
Update issue_notify.yaml
drinkgalaxy Nov 7, 2024
d405434
Update issue_notify.yaml
drinkgalaxy Nov 7, 2024
85b526c
Rename .github/workflows/issue_notify.yaml to .github/workflows/part3…
drinkgalaxy Mar 11, 2025
c94ca1e
Rename issue_notify.yaml to issue_notify.yaml
drinkgalaxy Mar 11, 2025
3af17d1
Create cicd-1.yaml
drinkgalaxy Mar 11, 2025
5e37ea0
Update App.js
drinkgalaxy Mar 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/cicd-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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

15 changes: 15 additions & 0 deletions .github/workflows/part1/issue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: issue-workflow
on:
issues:
types: [opened]

jobs:
issue-job:
runs-on: ubuntu-latest
steps:
- name: step1
run: echo hello world
- name: step2
run: |
echo hello world
echo github action
16 changes: 16 additions & 0 deletions .github/workflows/part1/issue_comment.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
18 changes: 18 additions & 0 deletions .github/workflows/part1/multiple_event.yaml
Original file line number Diff line number Diff line change
@@ -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

29 changes: 29 additions & 0 deletions .github/workflows/part1/needs.yaml
Original file line number Diff line number Diff line change
@@ -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 "job1 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"

13 changes: 13 additions & 0 deletions .github/workflows/part1/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: pull-request-workflow 1
on: pull_request

jobs:
push-job:
runs-on: ubuntu-latest
steps:
- name: step1
run: echo hello world
- name: step2
run: |
echo hello world
echo github action
13 changes: 13 additions & 0 deletions .github/workflows/part1/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: push-workflow 2
on: push

jobs:
push-job:
runs-on: ubuntu-latest
steps:
- name: step1
run: echo hello world
- name: step2
run: |
echo hello world
echo github action
33 changes: 33 additions & 0 deletions .github/workflows/part1/workflow_dispatch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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-disptch-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 }}
26 changes: 26 additions & 0 deletions .github/workflows/part2/artifact.yaml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions .github/workflows/part2/branch_filter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: branch-filter
on:
push:
branches: ["dev"]
jobs:
branch-filter:
runs-on: ubuntu-latest
steps:
- name: echo
run: echo hello
31 changes: 31 additions & 0 deletions .github/workflows/part2/cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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
17 changes: 17 additions & 0 deletions .github/workflows/part2/checkout.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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

13 changes: 13 additions & 0 deletions .github/workflows/part2/context.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: context
on: workflow_dispatch

jobs:
context:
runs-on: ubuntu-latest
steps:
- name: github context
run: echo '${{ toJSON(github) }}'
- name: check github context
run: |
echo ${{ github.repository }}
echo ${{ github.event_name }}
40 changes: 40 additions & 0 deletions .github/workflows/part2/create_repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: create-repo
on:
workflow_dispatch:
inputs:
prefix:
description: 'set repo prefix'
required: true
default: 'service'
type: choice
options:
- example
- service
- hello
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
id: create_repo # Step에 ID 추가
run: |
gh repo create ghactions-practice/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme ## 레포 생성
- name: slack
if: always()
uses: slackapi/[email protected]
with:
payload: |
{
"text": "Repository: ${{ inputs.prefix }}-${{ inputs.name }} ${{ job.status }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
20 changes: 20 additions & 0 deletions .github/workflows/part2/environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: environment
on: push

jobs:
get-env:
runs-on: ubuntu-latest
steps:
- name: check env & secret
run: |
echo ${{ vars.level }}
echo ${{ secrets.key }}

get-env-dev:
runs-on: ubuntu-latest
environment: dev
steps:
- name: check env & secret
run: |
echo ${{ vars.level }}
echo ${{ secrets.key }}
27 changes: 27 additions & 0 deletions .github/workflows/part2/if-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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 }}
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"
17 changes: 17 additions & 0 deletions .github/workflows/part2/if-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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
Loading