Skip to content

Commit f00c653

Browse files
authored
Create birthday.yml
1 parent 5755c64 commit f00c653

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/birthday.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 🎂 Birthday Checker
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
username:
6+
description: 'Your GitHub username (e.g. TheM1ddleM1n)'
7+
required: true
8+
type: string
9+
birthday:
10+
description: 'Your birthday (MM-DD, e.g. 06-05)'
11+
required: true
12+
type: string
13+
owner_token:
14+
description: 'Owner token (TheM1ddleM1n ONLY — leave blank otherwise)'
15+
required: false
16+
type: string
17+
permissions:
18+
contents: none
19+
jobs:
20+
birthday:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v6
25+
- name: Set up Python
26+
uses: actions/setup-python@v6
27+
with:
28+
python-version: '3.13'
29+
- name: Run birthday checker
30+
env:
31+
BIRTHDAY_USERNAME: ${{ inputs.username }}
32+
BIRTHDAY_DATE: ${{ inputs.birthday }}
33+
OWNER_TOKEN_INPUT: ${{ inputs.owner_token }}
34+
OWNER_TOKEN_SECRET: ${{ secrets.OWNER_BIRTHDAY_TOKEN }}
35+
run: python birthday/birthday.py

0 commit comments

Comments
 (0)