diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 21c32497b..4e95fc940 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -67,6 +67,9 @@ jobs: echo "swift_format_version=$SWIFT_FORMAT_VERSION" >> "$GITHUB_OUTPUT" - name: Checkout repository uses: actions/checkout@v4 + - name: Check version matches + run: | + grep '"${{ steps.swift_format_version.outputs.swift_format_version }}"' Sources/swift-format/PrintVersion.swift - name: Create release commits id: create_release_commits run: | @@ -81,10 +84,6 @@ jobs: git add Package.swift git commit -m "Change swift-syntax dependency to ${{ steps.swift_syntax_tag.outputs.swift_syntax_tag }}" - sed -E -i "s#print\(\".*\"\)#print\(\"${{ steps.swift_format_version.outputs.swift_format_version }}\"\)#" Sources/swift-format/PrintVersion.swift - git add Sources/swift-format/PrintVersion.swift - git commit -m "Change version to ${{ steps.swift_format_version.outputs.swift_format_version }}" - { echo 'release_commit_patch<