Skip to content

Commit 828b6f3

Browse files
committed
Use github variables to generate commands
This allows us to see the commands as they are run instead of having environment variables in them
1 parent 8ae4849 commit 828b6f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ jobs:
5959
6060
- name: "Ensure current snapshot version matches release version"
6161
run: |
62-
grep -q "version = '${RELEASE_VERSION_WITHOUT_SUFFIX}-SNAPSHOT'" build.gradle
62+
grep -q "version = '${{ env.RELEASE_VERSION_WITHOUT_SUFFIX }}-SNAPSHOT'" build.gradle
6363
if [[ $? == 0 ]]; then
6464
echo '❌ Release failed: version in build.gradle is not a snapshot for release version ${{ inputs.version }}' >> $GITHUB_STEP_SUMMARY
6565
exit 1
6666
fi
6767
6868
- name: "Ensure release tag does not already exist"
6969
run: |
70-
if [[ $(git tag -l r${RELEASE_VERSION}) == r${RELEASE_VERSION} ]]; then
70+
if [[ $(git tag -l r${{ env.RELEASE_VERSION }}) == r${{ env.RELEASE_VERSION }} ]]; then
7171
echo '❌ Release failed: tag for version ${{ inputs.version }} already exists' >> $GITHUB_STEP_SUMMARY
7272
exit 1
7373
fi
@@ -117,7 +117,7 @@ jobs:
117117

118118
- name: "Push release branch and tag"
119119
run: |
120-
git push origin ${RELEASE_BRANCH}
120+
git push origin ${{ env.RELEASE_BRANCH }}
121121
git push origin r${{ env.RELEASE_VERSION }}
122122
123123
- name: "Create draft release with generated changelog"

0 commit comments

Comments
 (0)