Skip to content

Commit

Permalink
Add docs on action
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Dec 19, 2024
1 parent 22a1e1d commit d2efa09
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,28 @@ Pyunit tests are automatically auto generated run using the checker tool against

### Running the tests
To run the tests, simply run `bazel test //...`. Alternatively, you can run the `checker.py` tool in a standalone mode by running `bazel run //:checker -- <command line arguments from above>`

## Automatically creating pull requests
If your libraries CI creates a new vendordep.json file, you can use an action contained in this repository to automatically create a pull request to add your changes.

Here is an example workflow:

```
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
- uses: actions/checkout@v4
# Steps to package your vendordep file. It is recommended that you store the new version number in a variable so that it can be used later when creating your PR's title and branch name
- id: create_pull_request
uses: wpilibsuite/vendor-json-repo/.github/actions/add_vendordep@latest
with:
token: ${{ secrets.PUBLISH_VENDOR_JSON_TOKEN }}
vendordep_file: <path to vendordep file>
pr_title: "Automatically add <library name> version <version>"
pr_branch: "publish_<library name>_<version>"
is_beta: true
```

0 comments on commit d2efa09

Please sign in to comment.