diff --git a/.github/workflows/release-on-version-bump.yml b/.github/workflows/release-on-version-bump.yml index 641d1ea..b5f7aa4 100644 --- a/.github/workflows/release-on-version-bump.yml +++ b/.github/workflows/release-on-version-bump.yml @@ -2,11 +2,6 @@ name: Create Release on Version Bump on: workflow_dispatch: # Manually trigger - inputs: - force: - description: "Force publish even if versions match" - required: false - default: "false" push: branches: [master] @@ -15,7 +10,6 @@ jobs: runs-on: ubuntu-latest outputs: new_version: ${{ steps.extract.outputs.new_version }} - last_commit_version: ${{ steps.extract.outputs.last_commit_version }} prev_version: ${{ steps.extract.outputs.prev_version }} changelog: ${{ steps.extract.outputs.changelog }} @@ -35,17 +29,15 @@ jobs: line3=$(echo "${versions[2]}" | cut -d: -f1 || echo "\$") new_version=$(echo "${versions[0]}" | sed -E 's/^.*##[[:space:]]*\[?([0-9]+\.[0-9]+\.[0-9]+)\]?.*/\1/') - last_commit_version=$(echo "${versions[1]}" | sed -E 's/^.*##[[:space:]]*\[?([0-9]+\.[0-9]+\.[0-9]+)\]?.*/\1/') - prev_version=$(git show ${{ steps.prev.outputs.sha }}:package.json | jq -r .version) + prev_version=$(echo "${versions[1]}" | sed -E 's/^.*##[[:space:]]*\[?([0-9]+\.[0-9]+\.[0-9]+)\]?.*/\1/') changelog=$(sed -n "$line1,$((line2 - 1))p" CHANGELOG.md | tail -n +2) - echo "new_version=$new_version" | tee "$GITHUB_OUTPUT" - echo "last_commit_version=$last_commit_version" | tee "$GITHUB_OUTPUT" - echo "prev_version=$prev_version" | tee "$GITHUB_OUTPUT" - echo "changelog<