-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
with: | ||
|