Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
mdwagner authored Feb 2, 2024
1 parent aa29b7c commit a7f5072
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
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/auto-pull-request@v1.0.1
with:

0 comments on commit a7f5072

Please sign in to comment.