Skip to content
4 changes: 3 additions & 1 deletion .github/workflows/custom-action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: Addingname
on: [push]

jobs:
Expand All @@ -12,4 +13,5 @@ jobs:
name: 'Brown'
# Use the output from the `hello` step
- name: Get the Output
run: echo "The time was ${{ steps.hello.outputs.greeting }}"

run: echo "The time was ${{ steps.hello.outputs.greeting }}"
16 changes: 16 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Message that will be displayed on users' first issue"
pr-message: "Message that will be displayed on users' first pull request"
10 changes: 10 additions & 0 deletions .github/workflows/multi_event.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Multi Event Example

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Run build step
run: echo "Triggered only on push or pull request"
13 changes: 13 additions & 0 deletions .github/workflows/single_event.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Single Event Example

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Run build step
run: echo "Triggered only on push to main branch"
16 changes: 16 additions & 0 deletions .github/workflows/test-schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Test Schedule Workflows


on:
schedule:
- cron : "*/1 * * * *"
workflow_dispatch:

jobs:
test-job:
runs-on: ubuntu-latest
steps:
- name: show current time
run: |
echo "Workflow triggered at $(date -u)"
echo "Hello from Github actions"