Skip to content

Commit

Permalink
ci: split ci variables
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Oct 22, 2022
1 parent 01d7fcd commit f004476
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,17 @@ jobs:
run: |
git config --global user.name "semantic-release"
git config --global user.email "semantic-release@GitHub"
- name: Set old version variable and changelog
- name: Set old version variable
run: |
echo "old_version=`git describe --abbrev=0`" >> $GITHUB_ENV
- name: Set changelog variable
run: |
echo "changelog=`poetry run semantic-release changelog`" >> $GITHUB_ENV
- name: Print variables
env:
version: ${{ env.release_version }}
changelog: ${{ env.changelog }}
run: |
echo $old_version
echo $changelog
- name: Python Semantic Release
Expand Down

0 comments on commit f004476

Please sign in to comment.