File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 inputs :
1010 release_type :
1111 required : true
12+ description : Choose type of release
1213 type : string
1314 outputs :
1415 project_version :
1819jobs :
1920 upgrade-version :
2021 runs-on : ubuntu-latest
22+ env :
23+ RELEASE_TYPE : ${{ inputs.release_type == 'major' && 'major' || 'minor' }}
2124 outputs :
2225 job_output_version : ${{ steps.get-version.outputs.PROJECT_VERSION}}
2326 steps :
3942 run : |
4043 git config user.name github-actions
4144 git config user.email github-actions@github.com
42- poetry version ${{ inputs.release_type }}
45+ poetry version "$RELEASE_TYPE"
4346 PROJECT_VERSION=$(poetry version --short)
4447 echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_OUTPUT
4548 sed -i "1 s/.*/version: $PROJECT_VERSION/" template_input.yaml
4851 PROJECT_VERSION=$(poetry version --short)
4952 git add template_input.yaml
5053 git add pyproject.toml
51- git commit -m "bump ${{ inputs.release_type }} version: ${{ steps.get-version.outputs.PROJECT_VERSION }}"
54+ git commit -m "bump "$RELEASE_TYPE" version: ${{ steps.get-version.outputs.PROJECT_VERSION }}"
5255 git push
You can’t perform that action at this time.
0 commit comments