Skip to content

Commit

Permalink
Update PR body
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Sep 20, 2024
1 parent 00ec63e commit 699aad5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/lock-dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,14 @@ jobs:
with:
name: lock-dependency-${{ github.run_id }}-${{ matrix.engine.name }}-${{ matrix.engine.version }}
path: gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}*
retention-days: 1

# TODO: Change token to trigger workflow automation
# > New commit by GITHUB_TOKEN does not trigger workflow automation to prevent infinite loop
commit:
name: Commit changes
needs: lock
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Auto-update Gemfiles
name: "Update Latest Dependency"

on:
schedule:
Expand Down Expand Up @@ -64,15 +64,11 @@ jobs:
with:
name: 'gha${{ github.run_id }}-datadog-gem-${{ matrix.engine.name }}-${{ matrix.engine.version }}'
path: gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}_*
retention-days: 3
retention-days: 1

aggregate:
needs: build
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -90,17 +86,13 @@ jobs:
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GHA_PAT }}
branch: update-latest-gemfiles
commit-message: "update latest gemfiles, workflow run: ${{ github.run_id }}"
delete-branch: true
branch: auto-generate/update-latest-dependencies
title: '[🤖] Update Latest Dependency'
base: master
title: 'Update Latest Gemfiles'
labels: dev/internal, integrations
commit-message: "[🤖] Update Latest Dependency: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
delete-branch: true
body: |
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.
_This is an auto-generated PR from [here](https://github.com/DataDog/dd-trace-rb/blob/master/.github/workflows/auto-update-gemfiles.yml), which creates a pull request that will be continually updated with new changes until it is merged or closed)_
The default behavior is to create a pull request that will be continually updated with new changes
until it is merged or closed.
The PR updates latest versions of defined dependencies. Please review the changes and merge when ready.

0 comments on commit 699aad5

Please sign in to comment.