Skip to content

Commit

Permalink
rename ref to branch
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveXiong committed Oct 16, 2024
1 parent 239f78d commit dcde0a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Bump version
on:
workflow_dispatch:
inputs:
ref:
branch:
description: 'The branch checkout'
required: false
type: string
Expand All @@ -14,14 +14,14 @@ on:
type: string
jobs:
bump-version:
name: Bump version to ${{ inputs.new-version }} in ${{ inputs.ref }}
name: Bump version to ${{ inputs.new-version }} in ${{ inputs.branch }}
runs-on: ubuntu-latest
steps:

- name: Check out the repo
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
ref: ${{ inputs.branch }}

- name: Create a branch for the new version
run: |
Expand Down Expand Up @@ -50,4 +50,4 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push -u origin "bump-version/${{ inputs.new-version }}"
gh pr create --title "build(misc): bump version to ${{ inputs.new-version }} in ${{ inputs.ref }}" --body "Bump version to ${{ inputs.new-version }} " --base ${{inputs.ref}}
gh pr create --title "build(misc): bump version to ${{ inputs.new-version }} in ${{ inputs.branch }}" --body "Bump version to ${{ inputs.new-version }} " --base ${{inputs.branch}}

0 comments on commit dcde0a2

Please sign in to comment.