Skip to content

Commit 811e4ae

Browse files
committed
Update README
1 parent 77ece32 commit 811e4ae

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ __GitHub Action to setup the [Fortran Package Manager](https://github.com/fortra
99
## Usage
1010

1111
```yaml
12-
- uses: lkedward/setup-fpm@v1
12+
- uses: lkedward/setup-fpm@v2
13+
with:
14+
github-token: ${{ secrets.GITHUB_TOKEN }}
1315
```
1416
1517
This will download the latest `fpm` version to the CI machine and add it to the path.
@@ -23,9 +25,11 @@ __e.g.:__
2325

2426
## Options
2527

26-
__`use-bootstrap`__ (*optional,default:*`false`) whether to fetch and use the legacy 'bootstrap' implementation
28+
__`github-token`__ (*only needed if `fpm-version` is `'latest'` or not specified*), an access token used to query the latest version of `fpm`. Set to `${{ secrets.GITHUB_TOKEN }}` to use the existing github actions token.
29+
30+
__`fpm-version`__ (*optional,default:*`'latest'`) the tag corresponding a Github release from which to fetch the `fpm` binary.
31+
- If set to `'latest'` (_default_) then the latest `fpm` release at [fortran-lang/fpm](https://github.com/fortran-lang/fpm/releases/latest) will be substituted. `github-token` must be provided if `fpm-version` is `'latest'`.
2732

28-
__`fpm-version`__ (*optional*) the tag corresponding a Github release from which to fetch the `fpm` binary.
29-
If omitted, the latest `fpm` release at [fortran-lang/fpm](https://github.com/fortran-lang/fpm/releases/latest) will be substituted.
33+
__`use-bootstrap`__ (*optional,default:*`false`) whether to fetch and use the legacy 'bootstrap' implementation
3034

3135
__`fpm-repository`__ (*optional, default:* `https://github.com/fortran-lang/fpm`) which Github fork to fetch release binaries from.

0 commit comments

Comments
 (0)