Skip to content

Commit 075f4a6

Browse files
committed
[CI] Validate Gradle and checkout branch to use as app name
1 parent 77f91a2 commit 075f4a6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ jobs:
3636
- name: Check out repository
3737
uses: actions/checkout@v4
3838

39+
- name: Make sure Gradle wrapper is legitimate
40+
uses: gradle/actions/wrapper-validation@v5
41+
42+
- name: Create and checkout branch that will be used as app name
43+
# push events already checked out the branch
44+
if: github.event_name == 'pull_request'
45+
env:
46+
BRANCH: ${{ github.head_ref }}
47+
run: git checkout -B "$BRANCH"
48+
3949
- name: Set up Java JDK
4050
uses: actions/setup-java@v4
4151
with:

0 commit comments

Comments
 (0)