Skip to content

Commit

Permalink
[ci] Fix cargo search call #596 (#597)
Browse files Browse the repository at this point in the history
* update readme

* add test workflow

* fix syntax

* print for debug

* pass to next step

* fix output passing

* cat file

* fix missing id in step

* fix release workflow
  • Loading branch information
michaelvlach authored Jun 18, 2023
1 parent 113fdc2 commit 7fcc755
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
new_version: ${{ steps.new_version.outputs.new_version }}
steps:
- uses: actions/checkout@v3
- run: |
PUBLISHED_VERSION=$(cargo search agdb --limit 1 -q | head -n 1 | cut -d '"' -f 2)
- id: new_version
run: |
PUBLISHED_VERSION=$(cargo search ^agdb$ --limit 1 -q | head -n 1 | cut -d '"' -f 2)
CURRENT_VERSION=$(cat Cargo.toml | grep version | head -n 1 | cut -d '"' -f 2)
if [[ "${PUBLISHED_VERSION}" != "${CURRENT_VERSION}" ]]; then echo "new_version=${CURRENT_VERSION}" >> $GITHUB_OUTPUT"; fi
if [[ "${PUBLISHED_VERSION}" != "${CURRENT_VERSION}" ]]; then echo "new_version=${CURRENT_VERSION}" >> $GITHUB_OUTPUT; fi
echo "Published version: ${PUBLISHED_VERSION}"
echo "Current version: ${CURRENT_VERSION}"
release:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Agnesoft Graph Database

![Crates.io](https://img.shields.io/crates/v/agdb)[![release](https://github.com/agnesoft/agdb/actions/workflows/build.yaml/badge.svg)](https://github.com/agnesoft/agdb/actions/workflows/release.yaml) [![coverage](https://github.com/agnesoft/agdb/actions/workflows/coverage.yaml/badge.svg)](https://github.com/agnesoft/agdb/actions/workflows/coverage.yaml) [![codecov](https://codecov.io/gh/agnesoft/agdb/branch/main/graph/badge.svg?token=Z6YO8C3XGU)](https://codecov.io/gh/agnesoft/agdb)
![Crates.io](https://img.shields.io/crates/v/agdb) [![release](https://github.com/agnesoft/agdb/actions/workflows/release.yaml/badge.svg)](https://github.com/agnesoft/agdb/actions/workflows/release.yaml) [![coverage](https://github.com/agnesoft/agdb/actions/workflows/coverage.yaml/badge.svg)](https://github.com/agnesoft/agdb/actions/workflows/coverage.yaml) [![codecov](https://codecov.io/gh/agnesoft/agdb/branch/main/graph/badge.svg?token=Z6YO8C3XGU)](https://codecov.io/gh/agnesoft/agdb)

The Agnesoft Graph Database (aka _agdb_) is persistent memory mapped graph database using purely 'no-text' programmatic queries. It can be used as a main persistent storage as well as fast in-memory cache. Its typed but schema-less data store allows for seamless data updates with no downtime or costly migrations. All queries are constructed via a builder pattern (or directly as objects) with no special language or text parsing.

Expand Down

0 comments on commit 7fcc755

Please sign in to comment.