Skip to content

Commit 247965a

Browse files
committed
chore: check if access token was generated
1 parent 425234b commit 247965a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
private-key: ${{ secrets.GH_CI_BOT_APP_PRIVATE_KEY }}
3232
owner: apideck-libraries
3333

34+
- name: Verify token was created
35+
run: |
36+
if [ -z "${{ steps.app-token.outputs.token }}" ]; then
37+
echo "::error::GitHub App token was not created"
38+
exit 1
39+
fi
40+
echo "Token created successfully"
41+
3442
generate:
3543
needs: generate-token
3644
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15

0 commit comments

Comments
 (0)