From df81b1e8f21298de2fb53917cfc22065e44b3ffb Mon Sep 17 00:00:00 2001 From: Sarthak Nandi Date: Tue, 17 Sep 2024 09:19:06 -0700 Subject: [PATCH] Switch github workflows to use main and v0.x branches (#711) --- .github/workflows/gradle.yml | 2 +- .../workflows/{gradle_master.yml => gradle_main.yml} | 8 ++++---- .../{gradle_1.0.0-SNAPSHOT.yml => gradle_v0.x.yml} | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) rename .github/workflows/{gradle_master.yml => gradle_main.yml} (68%) rename .github/workflows/{gradle_1.0.0-SNAPSHOT.yml => gradle_v0.x.yml} (52%) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index b0c31d53a..58c575858 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,7 +8,7 @@ on: inputs: branch: description: 'The branch to run the job on' - default: master + default: main required: false type: string diff --git a/.github/workflows/gradle_master.yml b/.github/workflows/gradle_main.yml similarity index 68% rename from .github/workflows/gradle_master.yml rename to .github/workflows/gradle_main.yml index 3a954870a..e32796a38 100644 --- a/.github/workflows/gradle_master.yml +++ b/.github/workflows/gradle_main.yml @@ -5,12 +5,12 @@ name: Java CI with Gradle for master branch on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: build: - uses: Yelp/nrtsearch/.github/workflows/gradle.yml@master + uses: Yelp/nrtsearch/.github/workflows/gradle.yml@main with: - branch: master + branch: main diff --git a/.github/workflows/gradle_1.0.0-SNAPSHOT.yml b/.github/workflows/gradle_v0.x.yml similarity index 52% rename from .github/workflows/gradle_1.0.0-SNAPSHOT.yml rename to .github/workflows/gradle_v0.x.yml index 109d55624..c4cb8acf4 100644 --- a/.github/workflows/gradle_1.0.0-SNAPSHOT.yml +++ b/.github/workflows/gradle_v0.x.yml @@ -1,16 +1,16 @@ # This workflow will build a Java project with Gradle # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Java CI with Gradle for 1.0.0-SNAPSHOT branch +name: Java CI with Gradle for v0.x branch on: push: - branches: [ 1.0.0-SNAPSHOT ] + branches: [ v0.x ] pull_request: - branches: [ 1.0.0-SNAPSHOT ] + branches: [ v0.x ] jobs: build: - uses: Yelp/nrtsearch/.github/workflows/gradle.yml@1.0.0-SNAPSHOT + uses: Yelp/nrtsearch/.github/workflows/gradle.yml@v0.x with: - branch: 1.0.0-SNAPSHOT + branch: v0.x