Skip to content

Commit d2e1ac0

Browse files
committed
add workflow dispatch to process single user
1 parent 715de61 commit d2e1ac0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/process-single-user.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
name: Process Single User
2-
run-name: Process @${{ github.event.client_payload.username }}
2+
run-name: Process @${{ github.event.client_payload.username || inputs.username }}
33

44
on:
55
repository_dispatch:
66
types: [new_instagram_post]
7+
workflow_dispatch:
8+
inputs:
9+
username:
10+
description: 'Instagram username to process'
11+
required: true
12+
type: string
713

814
jobs:
915
process-post:
@@ -36,7 +42,7 @@ jobs:
3642
EMAIL_HASH_KEY: ${{ secrets.EMAIL_HASH_KEY }}
3743
# --- Apify Token ---
3844
APIFY_API_TOKEN: ${{ secrets.APIFY_API_TOKEN }}
39-
TARGET_USERNAME: ${{ github.event.client_payload.username }}
45+
TARGET_USERNAME: ${{ github.event.client_payload.username || inputs.username }}
4046
MAX_CONCURRENT_TASKS: 1
4147

4248
steps:

0 commit comments

Comments
 (0)