diff --git a/.github/workflows/homey-app-translate.yml b/.github/workflows/homey-app-translate.yml index d0f2d2a..930ec02 100644 --- a/.github/workflows/homey-app-translate.yml +++ b/.github/workflows/homey-app-translate.yml @@ -1,8 +1,31 @@ name: Translate Homey App + on: workflow_dispatch: -jobs: - main: - uses: athombv/athom-github-workflow/.github/workflows/homey-app-translate.yml@master - secrets: inherit \ No newline at end of file +jobs: + main: + name: Translate App + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Translate Homey App + uses: athombv/github-action-homey-app-translate@master + with: + openai_api_key: ${{ secrets.OPENAI_API_KEY }} + + - name: Commit, Push & Create Pull Request + env: + GH_TOKEN: ${{ github.token }} + run: | + git config --local user.email "sysadmin+githubactions@athom.com" + git config --local user.name "Homey Github Actions Bot" + + git checkout -b feature/openai-translations + + git add -A + git commit -m "Automatic translations with OpenAI" + git push --set-upstream origin feature/openai-translations + + gh pr create --fill \ No newline at end of file