From 5a5ac6d39ce1df0d73b271152fa163802f83f3b3 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:18:40 +0100 Subject: [PATCH] chore(ci): setup workflows to create releases and release PRs (#109) --- .../{release.yml => create-releases.yml} | 2 +- .github/workflows/open-release-prs.yml | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) rename .github/workflows/{release.yml => create-releases.yml} (95%) create mode 100644 .github/workflows/open-release-prs.yml 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