diff --git a/.github/workflows/devtoolsBuilder.yml b/.github/workflows/devtoolsBuilder.yml index a183578c..e57b3479 100644 --- a/.github/workflows/devtoolsBuilder.yml +++ b/.github/workflows/devtoolsBuilder.yml @@ -45,7 +45,9 @@ jobs: id: create_commit run: | # Copy built files - rsync -a ./devtools-frontend/out/Default/gen/front_end ./public/ + rsync -a ./devtools-frontend/out/Default/gen/front_end ./public/front_end + # Create index.html + cp ./public/devtools_app.html ./public/front_end/index.html # Create commit info with latest devtools-frontend commit current_date=$(date +"%d-%m-%Y") latest_commit_full=$(git ls-remote https://chromium.googlesource.com/devtools/devtools-frontend.git HEAD | cut -f 1) @@ -57,3 +59,17 @@ jobs: echo "branch_name=${branch_name}" >> $GITHUB_OUTPUT echo "commit_title=${commit_title}" >> $GITHUB_OUTPUT echo "commit_description=${commit_description}" >> $GITHUB_OUTPUT + + - name: Create PR + id: create_pr + uses: peter-evans/create-pull-request@v5 + with: + branch: ${{ steps.create_commit.outputs.branch_name }} + title: ${{ steps.create_commit.outputs.commit_title }} + body: ${{ steps.create_commit.outputs.commit_description }} + commit-message: ${{ steps.create_commit.outputs.commit_description }} + author: GitHub + labels: auto-build + branch-suffix: timestamp + add-paths: | + public/front_end