release-pr #38
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-pr | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: string | |
required: true | |
darwin_amd64_sha: | |
type: string | |
required: true | |
darwin_arm64_sha: | |
type: string | |
required: true | |
linux_amd64_sha: | |
type: string | |
required: true | |
linux_arm64_sha: | |
type: string | |
required: true | |
jobs: | |
release-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Change to a new release | |
run: | | |
sed -i -E "s/version \"(.*)\"/version \"${{ github.event.inputs.version }}\"/" Formula/databricks.rb | |
sed -i -E "s/darwin_amd64_sha = \"(.*)\"/darwin_amd64_sha = \"${{ github.event.inputs.darwin_amd64_sha }}\"/" Formula/databricks.rb | |
sed -i -E "s/darwin_arm64_sha = \"(.*)\"/darwin_arm64_sha = \"${{ github.event.inputs.darwin_arm64_sha }}\"/" Formula/databricks.rb | |
sed -i -E "s/linux_amd64_sha = \"(.*)\"/linux_amd64_sha = \"${{ github.event.inputs.linux_amd64_sha }}\"/" Formula/databricks.rb | |
sed -i -E "s/linux_arm64_sha = \"(.*)\"/linux_arm64_sha = \"${{ github.event.inputs.linux_arm64_sha }}\"/" Formula/databricks.rb | |
- name: Create a release pull request | |
id: cpr | |
# Version v6.0.5 | |
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e | |
with: | |
author: "eng-dev-ecosystem-bot <[email protected]>" | |
committer: "eng-dev-ecosystem-bot <[email protected]>" | |
token: ${{ secrets.DECO_GITHUB_TOKEN }} | |
commit-message: Release CLI v${{ github.event.inputs.version }} | |
body: Release CLI v${{ github.event.inputs.version }} | |
branch: release-v${{ github.event.inputs.version }} | |
title: 'Release CLI v${{ github.event.inputs.version }}' | |
draft: false |