Skip to content

Commit

Permalink
update all references of v2 to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed Jan 25, 2024
1 parent 24c5779 commit 05078d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

This action makes the `protoc` compiler available to Workflows.

## Upgrade to v2
## Upgrade from v1 to v2 or v3

Added support **only** for the new protobuf tag naming convention `MINOR.PATCH`.

Expand All @@ -24,14 +24,14 @@ To get the latest stable version of `protoc` just add this step:

```yaml
- name: Install Protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
```
If you want to pin a major or minor version you can use the `.x` wildcard:

```yaml
- name: Install Protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
version: "23.x"
```
Expand All @@ -40,7 +40,7 @@ You can also require to include releases marked as `pre-release` in Github using

```yaml
- name: Install Protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
version: "23.x"
include-pre-releases: true
Expand All @@ -50,7 +50,7 @@ To pin the exact version:

```yaml
- name: Install Protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
version: "23.2"
```
Expand All @@ -60,7 +60,7 @@ pass the default token with the `repo-token` variable:

```yaml
- name: Install Protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-protoc-action",
"version": "2.0.0",
"version": "3.0.0",
"private": true,
"description": "Setup protoc action",
"main": "lib/main.js",
Expand Down

0 comments on commit 05078d2

Please sign in to comment.