conan-request-action
所属分类:WEB开发
开发工具:TypeScript
文件大小:524KB
下载次数:0
上传日期:2023-01-05 03:58:43
上 传 者:
sh-1993
说明: 请求更新Conan中心索引中的配方的操作。
(An action to request an update of the recipe in the Conan Center Index.)
文件列表:
.eslintignore (27, 2022-02-16)
.eslintrc.json (2906, 2022-02-16)
.prettierignore (27, 2022-02-16)
.prettierrc.json (206, 2022-02-16)
LICENSE (1074, 2022-02-16)
action.yml (635, 2022-02-16)
dist (0, 2022-02-16)
dist\index.js (1939048, 2022-02-16)
jest.config.js (228, 2022-02-16)
package-lock.json (252852, 2022-02-16)
package.json (1721, 2022-02-16)
src (0, 2022-02-16)
src\apply-inputs.ts (471, 2022-02-16)
src\main.ts (343, 2022-02-16)
src\make-request.ts (1146, 2022-02-16)
src\semver-clean.ts (40, 2022-02-16)
src\source-information.ts (2505, 2022-02-16)
tests (0, 2022-02-16)
tests\main.test.ts (71, 2022-02-16)
tsconfig.json (981, 2022-02-16)
# Conan Request Action
An action to create an issue with a request to update the package recipe in an upstream repository with Conan Center Index's request formatting.
## Usage
To start using the Action create a yaml file in your repository under the `.github/workflow/` directory.
### Example
```yml
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: Minimonium/conan-request-action@master
with:
token: ${{ secrets.PERSONAL_TOKEN }}
```
### Inputs
| Input | Default | Description |
| --- | --- | --- |
| token | - | An author's personal github token to create issues in the upstream repository |
| packageName | Lower-cased name of the author's repository | The name of the package in the upstream repository |
| upstreamOwner | conan-io | Name of the upstream repository's owner |
| upstreamRepo | conan-center-index | Name of the upstream repository |
### Personal Token
To create a personal Github Token go to your [personal tokens page](https://github.com/settings/tokens) and click `Generate new token` button. Copy the produced token.
Go to your [repository's secrets page](https://github.com/{owner}/{repo}/settings/secrets) and click `Add a new secret`. Create a secret with the personal token created at the previous step.
For example, if you name it `PERSONAL_TOKEN` - then in the workflow file you should use it like this: `token: ${{ secrets.PERSONAL_TOKEN }}`.
## LICENSE
[MIT](LICENSE)
近期下载者:
相关文件:
收藏者: