fix(init): Update pom.xml when running ftl init kotlin
on an existing directory
#12
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
on: | |
pull_request: | |
name: Conventional Commits | |
jobs: | |
cc: | |
name: Conventional Commits | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- uses: cashapp/activate-hermit@v1 | |
- name: Update PR title | |
run: | | |
orig="${{ github.event.pull_request.title }}" | |
modified="$(gptcc "$orig")" | |
diff -u <(echo "$orig") <(echo "$modified") | tail +4 || true | |
gh pr edit --title "$modified" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |