Skip to content

Commit 812809d

Browse files
authored
Create tryhackme-badge-action-workflow
1 parent 2030531 commit 812809d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Update TryHackMe Badge
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Runs every day at midnight
6+
workflow_dispatch: # Allows manual triggering
7+
8+
jobs:
9+
update-badge:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
- name: Fetch TryHackMe Badge
15+
uses: ./
16+
with:
17+
image_path: './assets/tryhackme-badge.png'
18+
username: 'dhanushnehru'
19+
user_id: '1995656'
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)