@@ -96,7 +96,7 @@ and integration with docs platforms, see the [examples directory](./examples).
9696
9797## Actions
9898
99- This repository provides three GitHub actions.
99+ This repository provides four GitHub actions.
100100
101101- ` stainless-api/upload-openapi-spec-action/build`: Build SDKs for a Stainless
102102project. This action is also usable in GitLab CI. For information about the
@@ -110,6 +110,11 @@ the [action definition](./preview/action.yml).
110110a pull request. For information about the input parameters, see the [action
111111definition](./merge/action.yml).
112112
113+ - `stainless-api/upload-openapi-spec-action/checkout-pr-ref` : Checkout the base
114+ or head commit for previewing a pull request's changes, saving changes to the
115+ config when needed. For information about the input parameters, see the [action
116+ definition](./checkout-pr-ref/action.yml).
117+
113118# ## Workflow permissions
114119
115120The GitHub actions use the following
@@ -120,14 +125,14 @@ will comment on the pull request with the build results. This is set to true by
120125default. The actions use the `github_token` input to make a comment, and the
121126comment must have the `pull-requests : write` permission.
122127
123- - The `preview` action relies on being in a Git repository that can fetch from
124- the remote to determine base revisions. This will be the case if you use the
125- [`actions/checkout`](https://github.com/actions/checkout) GitHub action
126- beforehand. That action needs the `contents : read` permission.
128+ - The `preview` and `checkout-pr-ref` actions rely on being in a Git repository
129+ that can fetch from the remote to determine base revisions. This will be the
130+ case if you use the [`actions/checkout`](https://github.com/actions/checkout)
131+ GitHub action beforehand. That action needs the `contents : read` permission.
127132
128133# ## Versioning policy
129134
130- This action uses [semantic versioning](https://semver.org/), and you can pin
135+ These actions use [semantic versioning](https://semver.org/), and you can pin
131136your action to a major (`v1`), minor (`v1.0`), or patch (`v1.0.0`) version.
132137The public API includes :
133138
0 commit comments