Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
a20bdb8
Add push.yaml
shinhee818 Jun 8, 2025
b6bfc6d
Add push.yaml
shinhee818 Jun 8, 2025
4019ace
Add push.yaml
shinhee818 Jun 8, 2025
ca307ba
Add pull_request.yaml
shinhee818 Jun 9, 2025
2c008ed
Add pull_request.yaml
shinhee818 Jun 9, 2025
c4723dc
Add issue.yaml
shinhee818 Jun 9, 2025
60c603a
Add issue_comment.yaml
shinhee818 Jun 17, 2025
5ea379f
Add workflow_dispatch.yaml
shinhee818 Jun 17, 2025
f995467
Add workflow_dispatch.yaml
shinhee818 Jun 17, 2025
f27708c
Add workflow_dispatch.yaml
shinhee818 Jun 17, 2025
0952dc5
Add multiple-event.yaml
shinhee818 Jun 17, 2025
65bc991
Add needs.yaml
shinhee818 Jun 17, 2025
96731cc
Add checkout.yaml
shinhee818 Jun 17, 2025
d835061
Add context.yaml
shinhee818 Jun 20, 2025
11892c0
Add context.yaml
shinhee818 Jun 20, 2025
f07760e
Add filter.yaml
shinhee818 Jun 20, 2025
e897ad4
Add filter.yaml
shinhee818 Jun 20, 2025
3a060d8
Add filter.yaml
shinhee818 Jun 20, 2025
9f61e1b
Add path_filter.yaml
shinhee818 Jun 20, 2025
9695bd7
Add path_filter.yaml
shinhee818 Jun 20, 2025
9bf9086
Add path_filter.yaml
shinhee818 Jun 20, 2025
3adf322
Add path_filter.yaml
shinhee818 Jun 20, 2025
f6fc3aa
Add path_filter.yaml
shinhee818 Jun 20, 2025
f18b22c
Add tag-filter.yaml
shinhee818 Jun 20, 2025
d7d144d
Add timeout.yaml
shinhee818 Jun 20, 2025
048b96b
Add timeout.yaml
shinhee818 Jun 20, 2025
b3e8847
Add cache.yaml
shinhee818 Jun 20, 2025
0e09ab5
Add cache.yaml
shinhee818 Jun 20, 2025
d6e103c
Add cache.yaml
shinhee818 Jun 20, 2025
3b113ea
Add cache.yaml
shinhee818 Jun 20, 2025
42496cb
Add cache.yaml
shinhee818 Jun 20, 2025
6ef75a4
Add artifact.yaml
shinhee818 Jun 20, 2025
12b2004
Add artifact.yaml
shinhee818 Jun 20, 2025
92e5e20
Add output.yaml
shinhee818 Jun 20, 2025
1552a07
Add output.yaml
shinhee818 Jun 21, 2025
196b659
Add var-1.yaml
shinhee818 Jun 21, 2025
439fbcf
Add var-1.yaml
shinhee818 Jun 21, 2025
e0adb7a
Add var-2.yaml
shinhee818 Jun 21, 2025
82ddfb2
Add secrets.yaml
shinhee818 Jun 21, 2025
567516a
Add environment.yaml
shinhee818 Jun 21, 2025
bcef61d
Add environment.yaml
shinhee818 Jun 21, 2025
e7345a5
Add matrix.yaml
shinhee818 Jun 21, 2025
fa5974b
Add matrix.yaml
shinhee818 Jun 21, 2025
21816dd
Add if-1.yaml
shinhee818 Jun 21, 2025
4ce6953
Add if-1.yaml
shinhee818 Jun 21, 2025
4892276
Add if-2.yaml
shinhee818 Jun 21, 2025
6454a82
Add if-2.yaml
shinhee818 Jun 21, 2025
d167bb5
Add if-2.yaml
shinhee818 Jun 21, 2025
cb081c9
Add if-2.yaml
shinhee818 Jun 21, 2025
cbf0aa3
Add if-2.yaml
shinhee818 Jun 21, 2025
b3f77e3
Add if-2.yaml
shinhee818 Jun 21, 2025
c0dd295
Add create_repo.yaml
shinhee818 Jun 21, 2025
71c0713
Add create_repo.yaml
shinhee818 Jun 21, 2025
91e16a4
Add create_repo.yaml
shinhee818 Jun 21, 2025
1c7832c
Add issue_notify.yaml
shinhee818 Jun 21, 2025
2489d70
Add issue_notify.yaml
shinhee818 Jun 21, 2025
4337cfd
Add issue_notify.yaml
shinhee818 Jun 21, 2025
51b1674
Add issue_notify.yaml
shinhee818 Jun 21, 2025
e25744d
Add issue_notify.yaml
shinhee818 Jun 21, 2025
5e91e51
Add issue_notify.yaml
shinhee818 Jun 21, 2025
2fccfd5
Add cicd-1.yaml
shinhee818 Jun 24, 2025
57b1bdc
Update App.js
shinhee818 Jun 24, 2025
2381483
Update App.js
shinhee818 Jun 24, 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
28 changes: 28 additions & 0 deletions .github/workflows/cicd-1.yaml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions .github/workflows/part1/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
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:
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
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
28 changes: 28 additions & 0 deletions .github/workflows/part1/needs.yaml
Original file line number Diff line number Diff line change
@@ -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"
15 changes: 15 additions & 0 deletions .github/workflows/part1/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: pull-request-workflow 1
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
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
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
32 changes: 32 additions & 0 deletions .github/workflows/part1/workflow_diapatch.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
28 changes: 28 additions & 0 deletions .github/workflows/part2/artifact.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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@v4
with:
name: artifact-test
path: ./hello.txt

download-artifact:
runs-on: ubuntu-latest
needs: [upload-artifact]
steps:
- name: download artifact
uses: actions/download-artifact@v4
with:
name: artifact-test
path: ./

- name: check
run: cat hello.txt
30 changes: 30 additions & 0 deletions .github/workflows/part2/cache.yaml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions .github/workflows/part2/checkout.yaml
Original file line number Diff line number Diff line change
@@ -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
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 }}
19 changes: 19 additions & 0 deletions .github/workflows/part2/environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: environment
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: |
echo ${{ secrets.level }}
echo ${{ vars.level }}
28 changes: 28 additions & 0 deletions .github/workflows/part2/if-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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"
22 changes: 22 additions & 0 deletions .github/workflows/part2/if-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: if-1\2
on:
push:
workflow_dispatch:


jobs:
job1:
runs-on: ubuntu-latest
steps:
- name: exit1
run: exit1
- name: echo
if: always()
run: echo hello
job2:
needs: [job1]
runs-on: ubuntu-latest
if: always()
steps:
- name: echo
run: echo hello
15 changes: 15 additions & 0 deletions .github/workflows/part2/matrix.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/part2/output.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: output
on: push
jobs:
create-output:
runs-on: ubuntu-latest
outputs:
test: ${{ steps.check-output.outputs.test }}
steps:
- name: echo output
id: check-output
run: |
echo "test=hello" >> $GITHUB_OUTPUT
- 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 }}

Loading