Skip to content

Commit

Permalink
chore(opencommit.yml): add OpenCommit Action workflow file
Browse files Browse the repository at this point in the history
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
ralphschuler committed Nov 26, 2023
1 parent 091fd2b commit c13279a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit c13279a

Please sign in to comment.