From 74022dfa15422fb3786e82e8ab2a4ac31e12732f Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Tue, 30 Apr 2024 14:58:28 -0500 Subject: [PATCH] ci: Setup Weekly Releases (#949) This job will create a release request every week at least one hour before or during the Ruby SIG. This will ensure are aware of any pending releases during the SIG meeting and choose to submit a release. --- .github/workflows/release-request-weekly.yml | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release-request-weekly.yml diff --git a/.github/workflows/release-request-weekly.yml b/.github/workflows/release-request-weekly.yml new file mode 100644 index 000000000..9bd6f6c81 --- /dev/null +++ b/.github/workflows/release-request-weekly.yml @@ -0,0 +1,28 @@ +name: Weekly release request + +on: + schedule: + - cron: "0 0 * * 0" + +jobs: + release-request: + if: ${{ github.repository == 'open-telemetry/opentelemetry-ruby-contrib' }} + env: + ruby_version: "3.0" + runs-on: ubuntu-latest + steps: + - name: Install Ruby ${{ env.ruby_version }} + uses: ruby/setup-ruby@v1.175.1 + with: + ruby-version: ${{ env.ruby_version }} + - name: Checkout repo + uses: actions/checkout@v4 + - name: Install Toys + run: "gem install --no-document toys -v 0.15.5" + - name: Open release pull request + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + toys release request --yes --verbose \ + "--release-ref=${{ github.ref }}" \ + < /dev/null