Skip to content

Commit 74119f7

Browse files
committed
Add new schedule tester
1 parent 5f8d695 commit 74119f7

2 files changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Local Workflow Scheduler Test
2+
3+
on:
4+
schedule:
5+
- cron: "*/15 * * * *"
6+
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
workflow-scheduler-test:
18+
name: Workflow Scheduler Test
19+
uses: ./.github/workflows/reusable-workflow-scheduler-test.yml
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Reusable Workflow Scheduler Test
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
reusable-workflow-scheduler-test:
11+
name: Reusable Workflow Scheduler Test
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Confirm scheduler execution
16+
shell: bash
17+
run: |
18+
echo "========================================"
19+
echo "GitHub Actions Scheduler Test"
20+
echo "========================================"
21+
echo ""
22+
echo "Repository : ${GITHUB_REPOSITORY}"
23+
echo "Workflow : ${GITHUB_WORKFLOW}"
24+
echo "Workflow Ref : ${GITHUB_WORKFLOW_REF}"
25+
echo "Workflow SHA : ${GITHUB_WORKFLOW_SHA}"
26+
echo ""
27+
echo "Run ID : ${GITHUB_RUN_ID}"
28+
echo "Run Number : ${GITHUB_RUN_NUMBER}"
29+
echo "Run Attempt : ${GITHUB_RUN_ATTEMPT}"
30+
echo ""
31+
echo "Event : ${GITHUB_EVENT_NAME}"
32+
echo "Actor : ${GITHUB_ACTOR}"
33+
echo "Ref : ${GITHUB_REF}"
34+
echo "SHA : ${GITHUB_SHA}"
35+
echo ""
36+
echo "Current UTC Time"
37+
date -u
38+
echo ""
39+
echo "Runner"
40+
uname -a
41+
echo ""
42+
echo "YES - Scheduler is working."

0 commit comments

Comments
 (0)