Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored May 26, 2024
1 parent ef0d9be commit 8496382
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,27 @@ Find current stable and latest Android Gradle Plugin version for GitHub Actions
The action only exposes multiple `output`s containing latest version for each AGP release channel.

### Configuration:
#### Simple usage:
```yml
jobs:
actual-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
javaVersion: [ 21 ]
gradle: [ current, release-candidate ]
agp: ["stable", "rc", "alpha"]

- id: agp-version-finder
uses: usefulness/agp-version-finder-action@v1
with:
version-to-resolve: ${{ matrix.agp }}

- run: echo ${{ steps.agp-version-finder.outputs.resolved-version }}
```
#### Extra: Use AGP version in job name:
```yml
jobs:
provide-agp-version-matrix:
Expand Down

0 comments on commit 8496382

Please sign in to comment.