Skip to content

Commit

Permalink
docs: properly sort versions (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 authored Oct 28, 2022
1 parent 0708687 commit 72951bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/supported-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Click on a version to see the wrapper's code.
* Vampire
* [setup-wsl](https://github.com/Vampire/setup-wsl) - v1: [`SetupWslV1`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/vampire/SetupWslV1.kt)
* w9jds
* [firebase-action](https://github.com/w9jds/firebase-action) - v11.9.0: [`FirebaseActionV11`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/w9jds/FirebaseActionV11.kt), v2.2.2: [`FirebaseActionV2`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/w9jds/FirebaseActionV2.kt)
* [firebase-action](https://github.com/w9jds/firebase-action) - v2.2.2: [`FirebaseActionV2`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/w9jds/FirebaseActionV2.kt), v11.9.0: [`FirebaseActionV11`](https://github.com/krzema12/github-workflows-kt/blob/v[[ version ]]/library/src/gen/kotlin/it/krzeminski/githubactions/actions/w9jds/FirebaseActionV11.kt)

## Statistics

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import it.krzeminski.githubactions.wrappergenerator.metadata.deleteActionYamlCac
import it.krzeminski.githubactions.wrappergenerator.metadata.prettyPrint
import it.krzeminski.githubactions.wrappergenerator.types.deleteActionTypesYamlCacheIfObsolete
import it.krzeminski.githubactions.wrappergenerator.types.provideTypes
import it.krzeminski.githubactions.wrappergenerator.versions.Version
import java.nio.file.Path
import java.nio.file.Paths

Expand Down Expand Up @@ -63,7 +64,7 @@ private fun generateListOfWrappersForDocs(listOfWrappersInDocs: Path) {
ownedActions
.groupBy { it.name }
.forEach { (_, versions) ->
val kotlinClasses = versions.joinToString(", ") { it.toMarkdownLinkToKotlinCode() }
val kotlinClasses = versions.sortedBy { Version(it.version) }.joinToString(", ") { it.toMarkdownLinkToKotlinCode() }
writer.println(" * ${versions.first().toMarkdownLinkGithub()} - $kotlinClasses")
}
}
Expand Down

0 comments on commit 72951bc

Please sign in to comment.