Skip to content

Commit 51f9160

Browse files
committed
ci: use contains(secrets) guard to safely skip dispatch when BOT_TOKEN unset
1 parent 71dc55b commit 51f9160

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/sync-to-ai-plugins.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# Without it, this step will be skipped
2020
steps:
2121
- name: Repository Dispatch
22-
if: ${{ secrets.BOT_TOKEN != '' }}
22+
if: ${{ contains(secrets, 'BOT_TOKEN') && secrets.BOT_TOKEN != '' }}
2323
uses: peter-evans/repository-dispatch@v4
2424
with:
2525
repository: hashgraph-online/awesome-ai-plugins

0 commit comments

Comments
 (0)