Skip to content

Commit

Permalink
chore: Update workflow (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ancosma authored Dec 10, 2024
2 parents 9293d39 + 7639eee commit 7d4b3f3
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ jobs:
uses: ancosma/nexver@HEAD
with:
head-ref: ${{ github.event.pull_request.head.sha || 'HEAD' }}
patch-types: fix,chore(deps)
patch-types: fix,chore(deps),chore
input-template: v{version}
output-template: '{"previous-tag": "{previous-tag}", "tag": "{tag}", "version": "{version}"}'

- name: Next version
run: |
printf '%s\n' ${{ steps.next-version.outputs.output }}
patch-version:
name: Patch version ${{ needs.next-version.outputs.tag }}
Expand All @@ -77,22 +81,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('.github/workflows/ci.yaml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup tools
run: pip install toml-cli
- name: Install cargo-edit
run: |
cargo install cargo-edit
- name: Patch version
env:
VERSION: ${{ needs.next-version.outputs.version }}
run: |
toml set --toml-path Cargo.toml package.version "${VERSION}"
cargo set-version "${VERSION}"
cargo update
Expand Down

0 comments on commit 7d4b3f3

Please sign in to comment.