Skip to content

Commit e13e21e

Browse files
committed
Update PR body
1 parent b8d3b19 commit e13e21e

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

.github/workflows/lock-dependency.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,14 @@ jobs:
106106
with:
107107
name: lock-dependency-${{ github.run_id }}-${{ matrix.engine.name }}-${{ matrix.engine.version }}
108108
path: gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}*
109+
retention-days: 1
109110

110111
# TODO: Change token to trigger workflow automation
111112
# > New commit by GITHUB_TOKEN does not trigger workflow automation to prevent infinite loop
112113
commit:
113114
name: Commit changes
114115
needs: lock
115116
runs-on: ubuntu-latest
116-
permissions:
117-
contents: write
118117
steps:
119118
- uses: actions/checkout@v4
120119
with:

.github/workflows/auto-update-gemfiles.yml renamed to .github/workflows/update-latest-dependency.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Auto-update Gemfiles
1+
name: "Update Latest Dependency"
22

33
on:
44
schedule:
@@ -64,15 +64,11 @@ jobs:
6464
with:
6565
name: 'gha${{ github.run_id }}-datadog-gem-${{ matrix.engine.name }}-${{ matrix.engine.version }}'
6666
path: gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}_*
67-
retention-days: 3
67+
retention-days: 1
6868

6969
aggregate:
7070
needs: build
7171
runs-on: ubuntu-latest
72-
permissions:
73-
actions: read
74-
contents: write
75-
pull-requests: write
7672
steps:
7773
- name: Checkout code
7874
uses: actions/checkout@v4
@@ -90,17 +86,13 @@ jobs:
9086
uses: peter-evans/create-pull-request@v7
9187
with:
9288
token: ${{ secrets.GHA_PAT }}
93-
branch: update-latest-gemfiles
94-
commit-message: "update latest gemfiles, workflow run: ${{ github.run_id }}"
95-
delete-branch: true
89+
branch: auto-generate/update-latest-dependencies
90+
title: '[🤖] Update Latest Dependency'
9691
base: master
97-
title: 'Update Latest Gemfiles'
9892
labels: dev/internal, integrations
93+
commit-message: "[🤖] Update Latest Dependency: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
94+
delete-branch: true
9995
body: |
100-
This is an auto-generated PR from 'Auto-update Gemfiles' workflow.
101-
The PR updates the integration gemfiles to latest versions of dependencies.
102-
103-
Merge if green, otherwise add to backlog.
96+
_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)_
10497
105-
The default behavior is to create a pull request that will be continually updated with new changes
106-
until it is merged or closed.
98+
The PR updates latest versions of defined dependencies. Please review the changes and merge when ready.

0 commit comments

Comments
 (0)