diff --git a/.github/workflows/release.yml b/.github/workflows/create-releases.yml similarity index 95% rename from .github/workflows/release.yml rename to .github/workflows/create-releases.yml index d66cf6b..365f4fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/create-releases.yml @@ -1,4 +1,4 @@ -name: Release +name: Create releases on: push: branches: diff --git a/.github/workflows/open-release-prs.yml b/.github/workflows/open-release-prs.yml new file mode 100644 index 0000000..3375fb6 --- /dev/null +++ b/.github/workflows/open-release-prs.yml @@ -0,0 +1,21 @@ +name: Open release PRs +on: + push: + branches: + - next + +jobs: + release: + name: release + if: github.ref == 'refs/heads/next' && github.repository == 'lithic-com/lithic-go' + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: stainless-api/trigger-release-please@v1 + id: release + with: + repo: ${{ github.event.repository.full_name }} + stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} + branch-with-changes: next