update readme - test6 #13
Workflow file for this run
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: update version | |
on: | |
pull_request_target: | |
types: | |
- closed | |
branches: | |
- test_version | |
jobs: | |
bump-up-version: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.VERSION_DECOIMPACT }} | |
- name: install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: 1.4.2 | |
- name: bump up version and update template_input.yaml | |
run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
poetry version patch | |
PROJECT_VERSION=$(poetry version --short) | |
sed -i "1 s/.*/version: $PROJECT_VERSION/" template_input.yaml | |
- name: commit changes | |
run: | | |
git add template_input.yaml | |
git add pyproject.toml | |
git commit -m "bump up patch version from workflow: version $PROJECT_VERSION" | |
git push |