Skip to content

Commit

Permalink
Changed to push to a branch and make a pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftyos committed Sep 19, 2023
1 parent de4839b commit c7f4bd2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- 'frontend/**'
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand All @@ -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"

1 change: 1 addition & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit c7f4bd2

Please sign in to comment.