Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #18 from scriptershub/main
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
likhonsible authored Aug 14, 2024
2 parents d86afd1 + 2bad210 commit 4bc6f98
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/fun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Hourly Greeting Automation

on:
schedule:
- cron: '0 * * * *' # Runs at the start of every hour

jobs:
greet:
runs-on: ubuntu-latest
steps:
- name: Start up
run: echo "Starting up the greeting automation..."

- name: Print greeting
run: |
echo "Hello, world! The time is $(date)"
echo "Have a great hour ahead!"
- name: Go offline
run: echo "Going offline. See you in an hour!"
31 changes: 31 additions & 0 deletions .github/workflows/gratting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Scheduled and Manual Workflow

# Controls when the action will run
on:
# Manually triggered using the UI or API
workflow_dispatch:
inputs:
name:
description: 'Person to greet'
default: 'World'
required: true
type: string

# Automatically triggered every hour
schedule:
- cron: '0 * * * *'

jobs:
greet:
runs-on: ubuntu-latest

steps:
- name: Send greeting
run: echo "Hello ${{ inputs.name }}"

- name: Print hello every hour
run: echo "Hello, this is a scheduled greeting!"

- name: Stop this type every hour
if: github.event_name == 'schedule'
run: echo "Stopping after scheduled run"

0 comments on commit 4bc6f98

Please sign in to comment.