Skip to content

Commit

Permalink
Add prepare_release argument definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
bboe committed Feb 10, 2025
1 parent e28de2e commit 82aec66
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
git config --global committer.name GitHub
- name: Normalize version and update in code
run: |
praw-release bump ${{ github.event.inputs.package }} ${{ github.event.inputs.version }} ${{ github.event.inputs.package }}/${{ github.event.inputs.version_file }} > tmp_version
praw-release bump "${{ inputs.package }}" "${{ inputs.version }}" "${{ inputs.package }}/${{ inputs.version_file }}" > tmp_version
echo "version=$(cat tmp_version)" >> $GITHUB_ENV
rm tmp_version
- name: Commit changes with desired version
run: git commit -am "Bump to v${{ env.version }}"
- name: Update code with next development version
run: |
praw-release bump ${{ github.event.repository.name }} unreleased > tmp_version
praw-release bump "${{ inputs.package }}" unreleased "${{ inputs.package }}/${{ inputs.version_file }}" > tmp_version
echo "dev_version=$(cat tmp_version)" >> $GITHUB_ENV
rm tmp_version
- name: Commit changes with development version
Expand All @@ -44,10 +44,19 @@ name: Prepare Release
on:
workflow_call:
inputs:
package:
type: string
description: The name of the package to build
required: true
version:
type: string
description: The version to prepare for release
required: true
version_file:
type: string
description: The filename that contains the __version__ variable
required: true

permissions:
contents: read
pull-requests: write

0 comments on commit 82aec66

Please sign in to comment.