Skip to content

Commit

Permalink
chore(release-please): update and set target branch for 2.x releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bencromwell committed Jan 19, 2024
1 parent e941dc0 commit a764249
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ on:
branches:
- main
- master
- 3.x
- 2.x
- 1.x

jobs:

release-please:
runs-on: [ ubuntu-latest ]
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
if: |
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/1.x' ||
github.ref == 'refs/heads/2.x' ||
github.ref == 'refs/heads/3.x'
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
Expand All @@ -24,11 +32,11 @@ jobs:
with:
app_id: ${{ vars.RELEASE_PLEASE_GITHUB_APP_ID }}
private_key: ${{ secrets.RELEASE_PLEASE_GITHUB_APP_PRIVATE_KEY }}
- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
id: release-please
with:
token: ${{ steps.generate-github-token.outputs.token }}
command: manifest
target-branch: 2.x

release:
runs-on: [ ubuntu-latest ]
Expand Down

0 comments on commit a764249

Please sign in to comment.