ci: cleanup generate yaml (#5)

This commit is contained in:
Adam Uhlíř 2025-04-23 11:19:37 +02:00 committed by GitHub
parent 60aaa4696a
commit 9e0759658a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@ permissions:
on: on:
repository_dispatch: repository_dispatch:
types: [generate, release] types: [generate]
workflow_dispatch: workflow_dispatch:
inputs: inputs:
openapi_url: openapi_url:
@ -25,10 +25,6 @@ jobs:
echo "Error: 'openapi_url' is missing in client_payload." echo "Error: 'openapi_url' is missing in client_payload."
exit 1 exit 1
fi fi
if [ "${{ github.event.action }}" == "release" ] && [ -z "${{ github.event.client_payload.version }}" ]; then
echo "Error: We are supposed to release, but 'version' is missing in client_payload."
exit 1
fi
echo "OPENAPI_URL=${{ github.event.client_payload.openapi_url }}" >> $GITHUB_ENV echo "OPENAPI_URL=${{ github.event.client_payload.openapi_url }}" >> $GITHUB_ENV
else else