Skip to content

Commit

Permalink
Switch github workflows to use main and v0.x branches (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthakn7 authored Sep 17, 2024
1 parent 780846c commit df81b1e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
inputs:
branch:
description: 'The branch to run the job on'
default: master
default: main
required: false
type: string

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit df81b1e

Please sign in to comment.