-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (38 loc) · 1.42 KB
/
java_tracer_update_version.yml
File metadata and controls
46 lines (38 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Update Version for the Java Tracer
on:
workflow_dispatch:
schedule:
- cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York
jobs:
bump_version:
runs-on: ubuntu-latest
permissions:
id-token: write # This is required for getting the required OIDC token from GitHub
packages: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
id: octo-sts
with:
scope: DataDog/datadog-aas-linux
policy: self.tracer-update.create-pr
- name: Modify build-packages
id: version
run: |
python .github/workflows/datadog_wrapper_tracer_update.py --tracer java
- name: Create Pull Request
id: pr
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
with:
token: ${{ steps.octo-sts.outputs.token }}
branch: "java-tracer-version-bump"
commit-message: "${{steps.version.outputs.pr_title}}"
delete-branch: true
title: "${{steps.version.outputs.pr_title}}"
body: "${{steps.version.outputs.pr_body}}"
- name: Display output
run: |
echo "Pull Request Number - ${{ steps.pr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.pr.outputs.pull-request-url }}"