Automatically create a datadog-agent PR when merging an omnibus-software PR #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
with: | |
repository: datadog/datadog-agent | |
path: datadog-agent | |
- name: Update release.json | |
run: cd $GITHUB_WORKSPACE/datadog-agent && inv -e release.set_release_json ${GITHUB_SHA} | |
- name: create datadog-agent PR | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
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 }}' |