From c7f4bd265d02cdfc92c1c9db169dcd656ef5ede2 Mon Sep 17 00:00:00 2001 From: SwiftyOS Date: Tue, 19 Sep 2023 12:35:04 +0200 Subject: [PATCH] Changed to push to a branch and make a pr --- .github/workflows/build-frontend.yml | 14 +++++++++++++- frontend/README.md | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml index cdbf8f6131..8996b52aec 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 9bb05d0aa7..bdcb3ea316 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. +