From e6359942b0ddde755b7412910d56067696c9307d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Sun, 30 Jun 2024 09:47:24 +0200 Subject: [PATCH] Fix variable declaration in `publish-javadoc.yml` (#257) --- .github/workflows/publish-javadoc.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-javadoc.yml b/.github/workflows/publish-javadoc.yml index dce118529..5d6de0bbb 100644 --- a/.github/workflows/publish-javadoc.yml +++ b/.github/workflows/publish-javadoc.yml @@ -17,14 +17,14 @@ jobs: - name: Extract Robolectric version id: robolectric_version run: | - authorAssociation=${{ github.event.issue.author_association }} + authorAssociation="${{ github.event.issue.author_association }}" if [[ "$authorAssociation" == "COLLABORATOR" || "$authorAssociation" == "MEMBER" || "$authorAssociation" == "OWNER" ]]; then - issueTitle=${{ github.event.issue.title }} + issueTitle="${{ github.event.issue.title }}" if [[ "$issueTitle" =~ ^Publish\ javadoc\ for\ (([0-9]+\.[0-9]+)(\.[0-9]+)?)$ ]]; then - robolectricMinorVersion=${BASH_REMATCH[2]} - robolectricPatchVersion=${BASH_REMATCH[1]} + robolectricMinorVersion="${BASH_REMATCH[2]}" + robolectricPatchVersion="${BASH_REMATCH[1]}" echo "minorVersion=$robolectricMinorVersion" > $GITHUB_OUTPUT echo "patchVersion=$robolectricPatchVersion" >> $GITHUB_OUTPUT @@ -62,7 +62,7 @@ jobs: if: ${{ steps.robolectric_version.outputs.minorVersion }} run: | cd robolectric.github.io - targetFolder=docs/javadoc/${{ steps.robolectric_version.outputs.minorVersion }} + targetFolder="docs/javadoc/${{ steps.robolectric_version.outputs.minorVersion }}" if [ -e $targetFolder ]; then rm -r $targetFolder fi