Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 31, 2024
1 parent b042920 commit 4318a6b
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 9 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/eo-version-up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# The MIT License (MIT)
#
# Copyright (c) 2022-2024 Objectionary.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
---
name: eo-version-up
'on':
push:
branches:
- master
tags:
- '*'
concurrency:
group: up-${{ github.ref }}
cancel-in-progress: true
jobs:
eo-version-up:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo apt-get -y install jq
- run: |
curl https://api.github.com/repos/objectionary/eo/releases/latest \
--silent | jq -r .tag_name > eo-version.txt
- uses: peter-evans/create-pull-request@v7
with:
branch: version-up
commit-message: 'new version of eo maven plugin'
delete-branch: true
title: 'New version of EO Maven Plugin'
assignees: yegor256
base: master
15 changes: 7 additions & 8 deletions .github/workflows/up.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License (MIT)
#
# Copyright (c) 2022-2024 Objectionary.com
# Copyright (c) 2024 Objectionary.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -35,15 +35,14 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo apt-get -y install jq
- run: |
curl https://api.github.com/repos/objectionary/eo/releases/latest \
--silent | jq -r .tag_name > eo-version.txt
- run: |-
git fetch --tags --force && \
latest=$(git tag --sort=creatordate | tail -1) && \
sed -E -i "s/@[0-9.]+/@${latest}/g" README.md
- uses: peter-evans/create-pull-request@v7
with:
branch: version-up
commit-message: 'new version of eo maven plugin'
commit-message: 'new version in README'
delete-branch: true
title: 'New version of EO Maven Plugin'
assignees: yegor256
title: 'New version in README'
base: master
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ First, you install [npm][npm-install] and [Java SE][java-se].
Then, you install [eolang][npm] package:

```bash
npm install -g eolang
npm install -g eolang@0.0.0
```

Then, you write a simple [EO](https://www.eolang.org) program in `hello.eo` file
Expand Down

0 comments on commit 4318a6b

Please sign in to comment.