-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also make it possible to supply the action manifest
- Loading branch information
Showing
7 changed files
with
131 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,14 +78,20 @@ While developing a typing manifest it might be a good idea to test the result wi | |
release the action in question or merge a PR in the catalog. For this you can `POST` the typing manifest you have | ||
on disk to the binding server using any valid URL for the action in question, for example using | ||
```bash | ||
curl --data-binary @action-types.yml https://bindings.krzeminski.it/pbrisbin/setup-tool-action/v2/setup-tool-action-v2.pom | ||
curl -F types=@action-types.yml https://bindings.krzeminski.it/pbrisbin/setup-tool-action/v2/setup-tool-action-v2.pom | ||
``` | ||
The binding server generates a binding with only the given type manifest and answer with some unique coordinates | ||
that you can use in a test workflow script. The binding will be available the normal cache time on the binding | ||
server and locally as long as you do not delete it from your local Maven repository where it is cached. After | ||
the cache period on the server ended requesting the same coordinates will return a binding as if no typing | ||
information is available at all. | ||
|
||
When writing typings for a new action that is not published yet or a new version with changed inputs / outputs, | ||
you should also provide the new action manifest, that the generation works with that state using | ||
```bash | ||
curl -F [email protected] -F [email protected] https://bindings.krzeminski.it/foo/bar/vX/bar-vX.pom | ||
``` | ||
|
||
Once there are any typings in place for the action, the `_Untyped` suffixed class is marked `@Deprecated`, and a class | ||
without that suffix is created additionally. In that class for each input that does not have type information available | ||
there will still be only the property with `_Untyped` suffix and nullability according to required status. For each | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters