Skip to content

Commit

Permalink
Updated README and branding
Browse files Browse the repository at this point in the history
  • Loading branch information
aleoyakas committed Jan 24, 2024
1 parent 415c9c6 commit 4f3d672
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
35 changes: 31 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,35 @@ the `previous-version`
## Example usage

```yaml
uses: aleoyakas/check-version-increased-action
with:
current-version: 3.1.1
previous-version: 3.1.0
name: front-end-checks

on:
workflow_call:
inputs:
target-branch:
required: true
type: string

jobs:
check-package-version:
runs-on: ubuntu-latest
steps:
- name: get-current-version
id: current-version
uses: ...

- name: get-previous-version
id: previous-version
uses: ...

- name: Check Version
uses: aleoyakas/check-semver-increased-action@v1
id: check-version
with:
current-version: ${{ steps.current-version.outputs.version }}
previous-version: ${{ steps.previous-version.outputs.version }}

- name: Echo Success
if: steps.action.outputs.is-version-increased == 'true'
run: echo Version has increased
```
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ outputs:
runs:
using: node20
main: dist/index.js

branding:
color: blue
icon: git-branch

0 comments on commit 4f3d672

Please sign in to comment.