From a7f50727e9ed784cd5e79675c0a80ccab8d12a86 Mon Sep 17 00:00:00 2001 From: Michael Wagner Date: Thu, 1 Feb 2024 19:42:29 -0500 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0855a4e..1cabfe5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,9 @@ on: description: "New Formula VERSION" required: true type: string + version_test: + description: "New Formula VERSION check" + type: string jobs: release: @@ -23,12 +26,14 @@ jobs: - uses: actions/checkout@v4 - name: Bump Formula run: | + git checkout -b release/${{ inputs.version }} sed -e 's#url ".*"#url "${{ inputs.url }}"#' \ -e 's/sha256 ".*"/sha256 "${{ inputs.sha256 }}"/' \ -e 's/version ".*"/version "${{ inputs.version }}"/' \ - -e 's/assert_equal ".*",/assert_equal "${{ inputs.version }}",/' \ + -e 's/assert_equal ".*",/assert_equal "${{ inputs.version_test || inputs.version }}",/' \ Formula/lucky.rb | tee Formula/lucky.rb git add . + git commit -m "release: bump to ${{ inputs.version }}" - name: Create PR uses: diillson/auto-pull-request@v1.0.1 with: