diff --git a/.github/workflows/issue.yaml b/.github/workflows/issue.yaml new file mode 100644 index 000000000..efcb6a2c3 --- /dev/null +++ b/.github/workflows/issue.yaml @@ -0,0 +1,17 @@ +name: issue-workflow +on: + issues: + branches: + - '*' + types: [opened] + + +jobs: + pull-request-job: + runs-on: ubuntu-latest + steps: + - name: step1 + run: echo hello world + - name: step2 + run: | + ehco github action test \ No newline at end of file diff --git a/.github/workflows/part1/pull_request.yaml b/.github/workflows/part1/pull_request.yaml new file mode 100644 index 000000000..ff9c310a8 --- /dev/null +++ b/.github/workflows/part1/pull_request.yaml @@ -0,0 +1,15 @@ +name: pull-request-workflow +on: + pull_request: + branches: + - '*' + +jobs: + pull-request-job: + runs-on: ubuntu-latest + steps: + - name: step1 + run: echo hello world + - name: step2 + run: | + echo github action test diff --git a/.github/workflows/part1/push.yaml b/.github/workflows/part1/push.yaml new file mode 100644 index 000000000..159fbf152 --- /dev/null +++ b/.github/workflows/part1/push.yaml @@ -0,0 +1,12 @@ +name: push-workflow 22 +on: + push: + branches: + - '*' # This will trigger the workflow on push to any branch + +jobs: + push-job: + runs-on: ubuntu-latest + steps: + - name: step1 + run: echo hello world~~~~~~~ latest commit!