Skip to content

Commit

Permalink
#202: up
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 10, 2023
1 parent a94c14f commit 8414fe7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: up
on:
push:
branches:
- master
tags:
- '*'
concurrency:
group: up-${{ github.ref }}
cancel-in-progress: true
jobs:
up:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- run: 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@v5
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
1 change: 1 addition & 0 deletions eo-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.29.4
6 changes: 4 additions & 2 deletions src/eoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ if (process.argv.includes('--verbose')) {
console.debug('Debug output is turned ON');
}

let parser = '0.29.4';
const fs = require('fs');
const path = require('path');
let parser = fs.readFileSync(path.join(__dirname, '../eo-version.txt'), 'utf8');
if (process.argv.includes('--latest')) {
parser = require('./parser-version').get();
} else {
console.debug('EO parser ' + parse + '; use the --latest flag if you need a freshier one');
console.debug('EO parser ' + parser + '; use the --latest flag if you need a freshier one');
}

const version = require('./version');
Expand Down

0 comments on commit 8414fe7

Please sign in to comment.