Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Sep 16, 2023
1 parent adaa6a6 commit 2071c6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ jobs:
- name: Extract branch name
if: success()
id: extract_branch
run: echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
run: |
if [ ${GITHUB_EVENT_NAME} == "pull_request" ]; then
echo "value=${GITHUB_BASE_REF:11}" >> $GITHUB_OUTPUT
else
echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
fi
- name: Build Documentation
uses: gradle/gradle-build-action@v2
with:
Expand Down

0 comments on commit 2071c6c

Please sign in to comment.