forked from chef/omnibus-software
-
Notifications
You must be signed in to change notification settings - Fork 27
51 lines (46 loc) · 1.56 KB
/
open-datadog-agent-pr.yml
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
45
46
47
48
49
50
51
name: Open datadog-agent PR
run-name:
on:
pull_request:
# types:
# - closed
jobs:
open_pr:
# if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Clone datadog-agent repo
uses: actions/checkout@v2
env:
WIP_AUTO_PR_TOKEN: ${{ secrets.WIP_AUTO_PR }}
with:
repository: datadog/datadog-agent
path: datadog-agent
ref: chouquette/add_release_json_setter
token: ${WIP_AUTO_PR_TOKEN}
- name: Setup Python3
uses: actions/setup-python@v4
with:
python-version: "3.11.5"
cache: "pip"
- name: Install python deps
working-directory: datadog-agent
run: pip3 install -r requirements.txt
- name: Update release.json
working-directory: datadog-agent
env:
OMNIBUS_SHA: ${{ github.event.pull_request.head.sha }}
run: |
inv -e release.set-release-json 'nightly::OMNIBUS_SOFTWARE_VERSION' ${OMNIBUS_SHA}
inv -e release.set-release-json 'nightly-a7::OMNIBUS_SOFTWARE_VERSION' ${OMNIBUS_SHA}
- name: create datadog-agent PR
uses: peter-evans/create-pull-request@v5
with:
token: ${WIP_AUTO_PR}
base: main
delete-branch: true
path: datadog-agent
add-paths: release.json
commit-message: 'omnibus: bump OMNIBUS_SOFTWARE_VERSION'
title: '[omnibus][automated] Bump OMNIBUS_SOFTWARE_VERSION'
branch: 'automated/omnibus-software/${{ github.event.number }}'