Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(opencommit.yml): add OpenCommit Action workflow file
This commit adds the `.github/workflows/opencommit.yml` file, which defines a workflow for the OpenCommit Action. The workflow is triggered on push events, excluding the `main` and `master` branches. It runs on the `ubuntu-latest` environment and has a timeout of 10 minutes. The workflow consists of the following steps: 1. Setup Node.js environment using the `actions/setup-node@v2` action with Node.js version 16. 2. Checkout the repository with the `actions/checkout@v3` action, setting the fetch depth to 0. 3. Use the `di-sukharev/[email protected]` action to run the OpenCommit Action. It requires the `GITHUB_TOKEN` secret to authenticate with the GitHub API. 4. Set environment variables for the OpenCommit Action, including the `OCO_OPENAI_API_KEY`, `OCO_OPENAI_MAX_TOKENS`, `OCO_OPENAI_BASE_PATH`, `OCO_DESCRIPTION`, `OCO_EMOJI`, `OCO_MODEL`, `OCO_LANGUAGE`, and `OCO_PROMPT_MODULE`. These changes were made to enable the OpenCommit Action in the repository, allowing for automated generation of conventional commit messages using OpenAI's GPT-3.5 Turbo model.
- Loading branch information