mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-11 10:14:32 +01:00
Changed to push to a branch and make a pr
This commit is contained in:
14
.github/workflows/build-frontend.yml
vendored
14
.github/workflows/build-frontend.yml
vendored
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user