findAlfredWorkflowAsset method
Find the first GithubAsset ending in '.alfredworkflow' file in the GithubRelease assets list.
Implementation
@visibleForTesting
GithubAsset? findAlfredWorkflowAsset(GithubRelease release) {
for (final GithubAsset asset in release.assets) {
if (asset.name.endsWith('.alfredworkflow')) {
return asset;
}
}
return null;
}