Skip to content

Commit

Permalink
fix[DEI-161]: release workflow repaired
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter committed Jan 29, 2024
1 parent d0c05d1 commit f01d513
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,34 @@ jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.VERSION_DECOIMPACT }}
fetch-depth: 0
- uses: actions/setup-python@v4
- 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: obtain version number
- name: bump version and update template_input.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
poetry version ${{ github.event.inputs.release_type }}
PROJECT_VERSION=$(poetry version --short)
echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV
sed -i "1 s/.*/version: $PROJECT_VERSION/" template_input.yaml
- name: commit changes
run: |
PROJECT_VERSION=$(poetry version --short)
git add template_input.yaml
git add pyproject.toml
git commit -m "bump version: $PROJECT_VERSION"
git push
- name: Create Release
uses: actions/create-release@latest
env:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"editor.formatOnSave": true,
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.organizeImports": "explicit"
},
},
"coverage-gutters.showLineCoverage": true,
Expand Down

0 comments on commit f01d513

Please sign in to comment.