Skip to content

Commit 7d894a4

Browse files
committed
edit & bump version
1 parent 8d7e3f8 commit 7d894a4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ jobs:
1515
current_version=`gh release list --limit 1 | grep -oE "([0-9]+)\.([0-9]+)\.([0-9]+)" | head -1`
1616
1717
# Check if package_version > current_version:
18-
${{ github.workspace }}/semver.sh +x
1918
is_newer=`${{ github.workspace }}/semver.sh $package_version $current_version`
2019
[ $is_newer -ge 1 ] && gh release create v$package_version --generate-notes
2120
22-
echo compare: `dpkg --compare-versions $package_version gt $current_version`
21+
if $(dpkg --compare-versions $package_version "gt" $current_version); then echo true; fi
2322
env:
2423
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "actions-test",
3-
"version": "1.0.1",
3+
"version": "1.0.52",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)