From f01d5132f980b32555c8df92d588e641843be829 Mon Sep 17 00:00:00 2001 From: Wouter Date: Mon, 29 Jan 2024 11:49:50 +0100 Subject: [PATCH] fix[DEI-161]: release workflow repaired --- .github/workflows/release.yml | 17 ++++++++++++++--- .vscode/settings.json | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88ae0fdf..bec1f408 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 github-actions@github.com 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: diff --git a/.vscode/settings.json b/.vscode/settings.json index 8861d0f3..3eff9010 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,7 +8,7 @@ "editor.formatOnSave": true, "[python]": { "editor.codeActionsOnSave": { - "source.organizeImports": true, + "source.organizeImports": "explicit" }, }, "coverage-gutters.showLineCoverage": true,