From 895ddef68ebda58cee417253da22e98b2511e24a Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Fri, 12 Apr 2024 12:39:02 -0600 Subject: [PATCH] chore: update workflows --- .github/workflows/onPushToMain.yml | 5 +---- package.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/onPushToMain.yml b/.github/workflows/onPushToMain.yml index 8d5821d..4007dad 100644 --- a/.github/workflows/onPushToMain.yml +++ b/.github/workflows/onPushToMain.yml @@ -15,15 +15,12 @@ jobs: id: version-check run: | package_version=$(node -p "require('./package.json').version") - # gh api repos/oclif/test-plugin-release/releases/tags/v5.0.5 >/dev/null 2>&1 && echo "Tag exists" || echo "Tag does not exist" - echo "gh api repos/${{ github.repository }}/releases/tags/v$package_version" - gh api repos/${{ github.repository }}/releases/tags/v$package_version exists=$(gh api repos/${{ github.repository }}/releases/tags/v$package_version >/dev/null 2>&1 && echo "true" || echo "") if [ -n "$exists" ]; then echo "Version v$package_version already exists" - echo "::warning file=package.json,line=1::Version v$package_version already exists" + echo "::warning file=package.json,line=1::Version v$package_version already exists - no release will be created. If you want to create a new release, please update the version in package.json and push again." echo "skipped=true" >> $GITHUB_OUTPUT else echo "Version v$package_version does not exist" diff --git a/package.json b/package.json index 010bafe..71fb499 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@oclif/test-plugin-release", "description": "plugin for testing GHA for oclif templates", - "version": "5.0.5", + "version": "5.0.6", "author": "Salesforce", "bin": { "oex": "./bin/run.js"