Run action on PR #1
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: | |
push: | |
pull_request: | |
branches: | |
- "main" | |
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@v1 | |
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 "[email protected]" | |
git config --local user.name "Leendert de Kok" | |
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 |