From 11725a9959b3d673801cf0de7d6a32c47ea12a3c Mon Sep 17 00:00:00 2001 From: quinna-h Date: Thu, 19 Sep 2024 10:58:02 -0400 Subject: [PATCH] Update workflow file --- .github/workflows/auto-update-gemfiles.yml | 86 +++------------------- 1 file changed, 12 insertions(+), 74 deletions(-) diff --git a/.github/workflows/auto-update-gemfiles.yml b/.github/workflows/auto-update-gemfiles.yml index 6a225fc07db..0e486366068 100644 --- a/.github/workflows/auto-update-gemfiles.yml +++ b/.github/workflows/auto-update-gemfiles.yml @@ -79,91 +79,29 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Download artifacts for Ruby 2.5 + - name: Download artifacts for all Ruby runtimes uses: actions/download-artifact@v4 with: - name: 'datadog-gem-ruby-2.5-gha${{ github.run_id }}' - path: gemfiles - - - name: Download artifacts for Ruby 2.6 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-ruby-2.6-gha${{ github.run_id }}' - path: gemfiles - - - name: Download artifacts for Ruby 2.7 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-ruby-2.7-gha${{ github.run_id }}' - path: gemfiles - - - name: Download artifacts for Ruby 3.0 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-ruby-3.0-gha${{ github.run_id }}' - path: gemfiles - - - name: Download artifacts for Ruby 3.1 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-ruby-3.1-gha${{ github.run_id }}' - path: gemfiles - - - name: Download artifacts for Ruby 3.2 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-ruby-3.2-gha${{ github.run_id }}' - path: gemfiles - - - name: Download artifacts for Ruby 3.3 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-ruby-3.3-gha${{ github.run_id }}' - path: gemfiles - - - name: Download artifacts for Ruby 3.4 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-ruby-3.4-gha${{ github.run_id }}' - path: gemfiles - - - name: Download artifacts for JRuby 9.2 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-jruby-9.2-gha${{ github.run_id }}' path: gemfiles + pattern: datadog-gem-ruby-* + merge-multiple: true - - name: Download artifacts for JRuby 9.3 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-jruby-9.3-gha${{ github.run_id }}' - path: gemfiles - - - name: Download artifacts for JRuby 9.4 - uses: actions/download-artifact@v4 - with: - name: 'datadog-gem-jruby-9.4-gha${{ github.run_id }}' - path: gemfiles - - # ADD NEW RUBIES HERE - + - run: ls -R gemfiles + - run: git diff - name: Create Pull Request uses: peter-evans/create-pull-request@v7 with: branch: update-latest-gemfiles - commit-message: "update latest gemfiles" + commit-message: "update latest gemfiles, workflow run: ${{ github.run_id }}" delete-branch: true base: master title: 'Update Latest Gemfiles' + labels: dev/internal, integrations body: | - **What does this PR do?** - - This is an auto-generated PR from 'Auto-update Gemfiles' workflow - - **Motivation:** - - **Additional Notes:** - - Auto-generated PR + This is an auto-generated PR from 'Auto-update Gemfiles' workflow. + The PR updates the integration gemfiles to latest versions of dependencies. + Merge if green, otherwise add to backlog. + The default behavior is to create a pull request that will be continually updated with new changes + until it is merged or closed.