Skip to content

Commit

Permalink
chore(automation): attempt to create the first automated PR for codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderblue committed Sep 25, 2024
1 parent 7fd672d commit 938593d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: go install github.com/newrelic/tutone/cmd/tutone@latest

- name: Echo stuff for a testing purposes
run: echo "${{ inputs.packages }}"
run: echo "${{ inputs.packages }}" && echo "Branch Name - ${{ github.ref_name }}"
shell: bash

# TODO: Append configuration to the config file OR write temporary Tutone config file?
Expand All @@ -68,22 +68,20 @@ jobs:
env:
NEW_RELIC_API_KEY: ${{ secrets.NEW_RELIC_API_KEY }}

- name: Commit and push changes
- name: Create new branch, commit, and push changes
run: |
git checkout -b automation/generated-code
git add pkg
git commit --no-verify -m 'feat(codegen): generate code based on latest API changes'
git push origin HEAD:${{ github.ref_name }}
git push origin automation/generated-code
# git commit --no-verify -m "chore(release): release v${VER_NEXT}"
# git push --no-verify origin HEAD:${DEFAULT_BRANCH}

- name: Create Pull Request
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.DEV_TOOLKIT_TOKEN }}
commit-message: 'chore(tutone): update generated code'
signoff: false
branch: feat/generated-code
branch: automation/generated-code
title: 'feat(codegen): generate code based on latest API changes'
body: |
Update generated code using Tutone
Expand Down

0 comments on commit 938593d

Please sign in to comment.