Currently workflows are run all the time, they should only run when needed.
The backend workflow will only run when changes to backend/, pyproject.toml and uv.lock files are made.
The frontend workflow will run when changes are not related to Python.
Added python3.12 to workflow
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/12521
**Author:** [@gaby](https://github.com/gaby)
**Created:** 4/6/2025
**Status:** ✅ Merged
**Merged:** 4/6/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `optimize-workflow`
---
### 📝 Commits (1)
- [`624c525`](https://github.com/open-webui/open-webui/commit/624c5250b12929be4f503303054441f3f47fc43a) Optimize GitHub actions
### 📊 Changes
**2 files changed** (+21 additions, -3 deletions)
<details>
<summary>View changed files</summary>
📝 `.github/workflows/format-backend.yaml` (+12 -2)
📝 `.github/workflows/format-build-frontend.yaml` (+9 -1)
</details>
### 📄 Description
### Description
- Currently workflows are run all the time, they should only run when needed.
- The backend workflow will only run when changes to `backend/`, `pyproject.toml` and `uv.lock` files are made.
- The frontend workflow will run when changes are *not* related to `Python`.
- Added `python3.12` to workflow
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12521
Author: @gaby
Created: 4/6/2025
Status: ✅ Merged
Merged: 4/6/2025
Merged by: @tjbck
Base:
dev← Head:optimize-workflow📝 Commits (1)
624c525Optimize GitHub actions📊 Changes
2 files changed (+21 additions, -3 deletions)
View changed files
📝
.github/workflows/format-backend.yaml(+12 -2)📝
.github/workflows/format-build-frontend.yaml(+9 -1)📄 Description
Description
backend/,pyproject.tomlanduv.lockfiles are made.Python.python3.12to workflow🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.