diff --git a/.github/workflows/.keep b/.github/workflows/.keep index e69de29bb..14201bee1 100644 --- a/.github/workflows/.keep +++ b/.github/workflows/.keep @@ -0,0 +1,11 @@ +on: + schedule: + - cron: '*/2 * * * *' + + +jobs: + test-schedule: + runs-on: ubuntu-latest + steps: + - name: current time print + run: echo "today date is $(date)" \ No newline at end of file diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 000000000..2d509e0cd --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,17 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: +# https://github.com/actions/first-interaction/tree/main + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "welcome new" + pr-message: "this is test" diff --git a/.github/workflows/multi event.yml b/.github/workflows/multi event.yml new file mode 100644 index 000000000..38aab47b0 --- /dev/null +++ b/.github/workflows/multi event.yml @@ -0,0 +1,26 @@ +name: multi event test + +on: + issues: + pull_request: + +jobs: + my_job_1 : + runs-on: ubuntu-latest + steps: + - name: run a command + run: | + echo "REF: ${{ github.ref }}" + echo "Job ID: ${{ github.job }}" + echo "Action: ${{ github.action }}" + echo "Actor: ${{ github.actor }}" + + my_job_2 : + runs-on: ubuntu-latest + steps: + - name: say my name + run: echo "my name is $(whoami) yes" + + + + diff --git a/.github/workflows/schedule_test.yml b/.github/workflows/schedule_test.yml new file mode 100644 index 000000000..815afde1b --- /dev/null +++ b/.github/workflows/schedule_test.yml @@ -0,0 +1,13 @@ +name: schedule testing + +on: + schedule: + - cron: '*/5 * * * *' + workflow_dispatch: + +jobs: + test_schedule: + runs-on: ubuntu-latest + steps: + - name: Every time + run: echo "This time is $(date)" \ No newline at end of file