diff --git a/.github/workflows/scheduler.yml b/.github/workflows/scheduler.yml new file mode 100644 index 000000000..7459035ac --- /dev/null +++ b/.github/workflows/scheduler.yml @@ -0,0 +1,10 @@ +name: Scheduler +on : + schedule: + - cron: '*/1 * * * *' +jobs: + hello_time: + runs-on: ubuntu-latest + steps: + - name: hello time + run: echo "The time is here $(date)" diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..485dee64b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/.github/workflows/custom-action.yml b/github-actions/templates/custom-action.yml similarity index 96% rename from .github/workflows/custom-action.yml rename to github-actions/templates/custom-action.yml index 7a87b53f1..d82fa02c8 100644 --- a/.github/workflows/custom-action.yml +++ b/github-actions/templates/custom-action.yml @@ -1,15 +1,15 @@ -on: [push] - -jobs: - my-job: - runs-on: ubuntu-latest - name: A job to say hello - steps: - - name: Hello world action step - id: hello - uses: omenking/barsoom@0.0.6 - with: - name: 'Brown' - # Use the output from the `hello` step - - name: Get the Output +on: [push] + +jobs: + my-job: + runs-on: ubuntu-latest + name: A job to say hello + steps: + - name: Hello world action step + id: hello + uses: omenking/barsoom@0.0.6 + with: + name: 'Brown' + # Use the output from the `hello` step + - name: Get the Output run: echo "The time was ${{ steps.hello.outputs.greeting }}" \ No newline at end of file diff --git a/github-actions/templates/greetings.yml b/github-actions/templates/greetings.yml index 996da6bbd..e07815905 100644 --- a/github-actions/templates/greetings.yml +++ b/github-actions/templates/greetings.yml @@ -1,15 +1,14 @@ name: Greetings -on: [pull_request_target, issues] +on: [pull_request, pull_request_target, issues] # EVENT IT TRIGGERS ON jobs: greeting: - runs-on: ubuntu-latest + runs-on: ubuntu-latest ## image permissions: issues: write pull-requests: write steps: - # https://github.com/actions/first-interaction - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }}