Release #4
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
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
url: | |
description: "New Formula URL" | |
required: true | |
type: string | |
sha256: | |
description: "New Formula SHA256" | |
required: true | |
type: string | |
version: | |
description: "New Formula VERSION" | |
required: true | |
type: string | |
version_test: | |
description: "New Formula VERSION check" | |
type: string | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- 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_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: | |
source_branch: "release/${{ inputs.version }}" | |
destination_branch: main | |
pr_title: "Release ${{ inputs.version }}" | |
pr_body: | | |
:crown: *An automated PR* | |
_Created by [diillson/auto-pull-request](https://github.com/diillson/auto-pull-request)_ |