Skip to content

Commit 4ffc562

Browse files
committed
Fix branch name for deployment testing
1 parent 40d0654 commit 4ffc562

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/gradle-build-develop.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,32 @@ jobs:
4040
restore-keys: ${{ runner.os }}-gradle
4141
- name: '🐳 Validate Gradle Wrapper'
4242
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
43+
44+
# Without the check task (or similar) we wouldn't be running the UI tests
4345
- name: '🐳 Gradle run tests'
4446
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
4547
with:
4648
arguments: check nativeTest
49+
50+
# If the tests pass, and we're on the develop branch, then deploy the regular image to Google
4751
deploy:
4852
runs-on: ubuntu-latest
4953
needs: [build-and-test]
50-
if: github.ref == 'refs/heads/develop' || github.ref == 'feature-2532/graal'
54+
if: github.ref == 'refs/heads/develop'
5155
steps:
5256
- name: '🚀 Deploy Image to Cloud Run'
5357
uses: './.github/workflows/gradle-deploy-develop.yml'
58+
59+
# If the tests pass, and we're on the develop branch, then deploy the native image to Google
5460
deploy-native:
5561
runs-on: ubuntu-latest
5662
needs: [build-and-test]
57-
if: github.ref == 'refs/heads/develop' || github.ref == 'feature-2532/graal'
63+
if: github.ref == 'refs/heads/develop' || github.ref_name == 'feature-2532/graal'
5864
steps:
5965
- name: '🚀 Deploy Native Image to Cloud Run'
6066
uses: './.github/workflows/gradle-deploy-native-develop.yml'
67+
68+
# When finished, do something so the pipeline goes green
6169
finalize:
6270
runs-on: ubuntu-latest
6371
needs: [deploy, deploy-native]

0 commit comments

Comments
 (0)