Skip to content

Commit

Permalink
set version via gha
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 25, 2023
1 parent 3deef00 commit e283247
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: up
on:
push:
jobs:
up:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: |-
git pull --tags && \
latest=$(git tag | grep ^0 | tail -1) && \
sed -E -i "s/<version>[^<]+/<version>${latest}/g" README.md && \
sed -E -i "s/org.cactoos:cactoos:.+/org.cactoos:cactoos::${latest}/g" README.md
- uses: peter-evans/create-pull-request@v5
with:
commit-message: 'new version in README'
delete-branch: true
title: 'New version in README'
assignees: yegor256
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,20 @@ The library has no dependencies. All you need is this
(get the latest version [here](https://github.com/yegor256/cactoos/releases)):

Maven:

```xml
<dependency>
<groupId>org.cactoos</groupId>
<artifactId>cactoos</artifactId>
<version>0.0.0</version>
</dependency>
```

Gradle:

```groovy
dependencies {
compile 'org.cactoos:cactoos:<version>'
compile 'org.cactoos:cactoos:0.0.0'
}
```

Expand Down

0 comments on commit e283247

Please sign in to comment.