diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml index cdbf8f61..8996b52a 100644 --- a/.github/workflows/build-frontend.yml +++ b/.github/workflows/build-frontend.yml @@ -7,6 +7,8 @@ on: - 'frontend/**' jobs: build: + permissions: + contents: write runs-on: ubuntu-latest steps: - name: Checkout Repo @@ -25,4 +27,14 @@ jobs: git config --local user.name "GitHub Action" git add frontend/build/web git commit -m "Update frontend build" -a - git push + git checkout -b frontend_build_${GITHUB_SHA} + echo "Commit hash: ${GITHUB_SHA}" + git push origin frontend_build_${GITHUB_SHA} + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + title: "Update frontend build" + body: "This PR updates the frontend build." + branch: "frontend_build_${GITHUB_SHA}" + base: "master" + diff --git a/frontend/README.md b/frontend/README.md index 9bb05d0a..bdcb3ea3 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -60,3 +60,4 @@ The app features a responsive design that adapts to different screen sizes and o ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. +