Skip to content

Commit 906ec53

Browse files
committed
chore(cd): add fallback and check
1 parent 9911771 commit 906ec53

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/deploy-trigger.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21+
- name: Debug Token Availability
22+
run: |
23+
if [ -z "${{ secrets.CLASSIC_PATKA }}" ]; then
24+
echo "CLASSIC_PATKA secret is not set or is empty"
25+
echo "Will fallback to github.token"
26+
else
27+
echo "CLASSIC_PATKA secret is available"
28+
fi
29+
2130
- name: Setup GitHub CLI
2231
uses: actions/setup-node@v4
2332
with:
@@ -26,7 +35,7 @@ jobs:
2635
- name: Trigger Workflow in Another Repository
2736
uses: actions/github-script@v8
2837
with:
29-
github-token: ${{ secrets.CLASSIC_PATKA }}
38+
github-token: ${{ secrets.CLASSIC_PATKA || github.token }}
3039
script: |
3140
await github.rest.repos.createDispatchEvent({
3241
owner: 'IgniteUI',

0 commit comments

Comments
 (0)