Skip to content

Commit

Permalink
Fix variable declaration in publish-javadoc.yml (robolectric#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 authored Jun 30, 2024
1 parent 7c8cadf commit e635994
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e635994

Please sign in to comment.