Skip to content

Commit

Permalink
Fix outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Jul 7, 2023
1 parent fbff545 commit 2f743cb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/CD-create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ jobs:
with:
fetch-depth: 0
- name: Creating versions
id: 'value'
run: |
echo "version=$(grep "version" build.gradle.kts | tail -n 1 | cut -d "=" -f2 | xargs echo )" >> $GITHUB_OUTPUT
echo "tagname=v$(grep "version" build.gradle.kts | tail -n 1 | cut -d "=" -f2 | xargs echo )" >> $GITHUB_OUTPUT
echo "subprojects=$(git diff $(git describe --abbrev=0 --tags) --name-only | grep 'subprojects' | awk -F '/' '{ print $2"/"$3 }' | sort | uniq)" >> $GITHUB_OUTPUT
- name: Creating message
run: |
echo "message=${{ inputs.message }}\n\nModified subprojects:\n${{steps.value.outputs.subprojects}}" >> $GITHUB_OUTPUT
export version=$(grep "version" build.gradle.kts | tail -n 1 | cut -d "=" -f2 | xargs echo )
export subprojects=$(git diff $(git describe --abbrev=0 --tags) --name-only | grep 'subprojects' | awk -F '/' '{ print $2"/"$3 }' | sort | uniq)
export message=$(printf ${{ inputs.message }}\n\nModified subprojects:\n${{steps.value.outputs.subprojects}})
echo "version=$version" >> $GITHUB_OUTPUT
echo "tagname=v$version" >> $GITHUB_OUTPUT
echo "subprojects=$subprojects" >> $GITHUB_OUTPUT
echo "message=$message" >> $GITHUB_OUTPUT
- name: Verify variables
run: |
echo version "${{steps.value.outputs.version}}
Expand Down

0 comments on commit 2f743cb

Please sign in to comment.