diff --git a/.github/workflows/issue.yaml b/.github/workflows/issue.yaml new file mode 100644 index 000000000..ceaed672b --- /dev/null +++ b/.github/workflows/issue.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/issue_comment.yaml b/.github/workflows/issue_comment.yaml new file mode 100644 index 000000000..b51c8d824 --- /dev/null +++ b/.github/workflows/issue_comment.yaml @@ -0,0 +1,18 @@ +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 }} + diff --git a/.github/workflows/part1/push.yaml b/.github/workflows/part1/push.yaml new file mode 100644 index 000000000..dd37a3344 --- /dev/null +++ b/.github/workflows/part1/push.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 000000000..25e184468 --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,15 @@ +name: pull-request-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/README.md b/README.md index ea85d664a..7d1c29f07 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# github-actions-setting \ No newline at end of file +# github-actions-setting 2