Update .drone.yml
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
93769a9df9
commit
605b5afd41
@ -1,5 +1,5 @@
|
|||||||
pipeline:
|
kind: pipeline
|
||||||
release:
|
name: release
|
||||||
trigger:
|
trigger:
|
||||||
release: true
|
release: true
|
||||||
steps:
|
steps:
|
||||||
@ -9,9 +9,9 @@ pipeline:
|
|||||||
command: |
|
command: |
|
||||||
import semver from "semver";
|
import semver from "semver";
|
||||||
|
|
||||||
const version = getLatestReleaseTag();
|
const latestReleaseTag = getLatestReleaseTag();
|
||||||
|
|
||||||
const isNewer = semver.gt(version, "2023-02-13-1223");
|
const isNewer = semver.gt(latestReleaseTag, "2023-02-13-1223");
|
||||||
|
|
||||||
if (isNewer) {
|
if (isNewer) {
|
||||||
echo "This pipeline is run because the new release is newer than the one I have.";
|
echo "This pipeline is run because the new release is newer than the one I have.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user