-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix[DEI-161]: release workflow repaired
- Loading branch information
Wouter
committed
Jan 29, 2024
1 parent
d0c05d1
commit f01d513
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
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