Skip to content

Commit 418d441

Browse files
authored
Fix nightly builds to ensure they get the version number correctly (#6640)
Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1211121590401637?focus=true ### Description our ` getBuildVersionName` gradle task is trying to call `buildVersionName()` which is defined in the `ext` block, but configuration cache doesn't allow tasks to access project extensions during execution phase. This PR changes the nightly job which uses that task to pass `--no-configuration-cache` to bypass it. ### Steps to test this PR - QA optional - [Optional] you can check that while the existing - `./gradlew getBuildVersionName -PversionNameSuffix=-nightly -PlatestTag=5.245.0.1-nightly` fails, - `./gradlew --no-configuration-cache getBuildVersionName -PversionNameSuffix=-nightly -PlatestTag=5.245.0.1-nightly` succeeds Co-authored-by: Craig Russell <[email protected]>
1 parent 05c100a commit 418d441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release_nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
if: steps.check_for_changes.outputs.has_changes == 'true'
111111
id: generate_version_name
112112
run: |
113-
output=$(./gradlew getBuildVersionName -PversionNameSuffix=-nightly -PlatestTag=${{ steps.get_latest_tag.outputs.latest_tag }} --quiet | tail -n 1)
113+
output=$(./gradlew --no-configuration-cache getBuildVersionName -PversionNameSuffix=-nightly -PlatestTag=${{ steps.get_latest_tag.outputs.latest_tag }} --quiet | tail -n 1)
114114
echo "version=$output" >> $GITHUB_OUTPUT
115115
116116
- name: Capture App Bundle Path

0 commit comments

Comments
 (0)