diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml index 17f71e14..e2148a14 100644 --- a/.github/workflows/build-frontend.yml +++ b/.github/workflows/build-frontend.yml @@ -21,19 +21,22 @@ jobs: run: | cd frontend flutter build web --base-href /app/ + - name: Set branch name + id: vars + run: echo "::set-output name=branch::frontend_build_${GITHUB_SHA}" - name: Commit and Push run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add frontend/build/web git commit -m "Update frontend build" -a - git checkout -b frontend_build_${GITHUB_SHA} + git checkout -b ${{ steps.vars.outputs.branch }} echo "Commit hash: ${GITHUB_SHA}" - git push origin frontend_build_${GITHUB_SHA} + git push origin ${{ steps.vars.outputs.branch }} - name: Create Pull Request uses: repo-sync/pull-request@v2 with: - source_branch: "frontend_build_${GITHUB_SHA}" + source_branch: ${{ steps.vars.outputs.branch }} destination_branch: "master" pr_title: "Update frontend build" pr_body: "This PR updates the frontend build." 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. +