Skip to content

Commit

Permalink
(fix) Make the build action open a PR
Browse files Browse the repository at this point in the history
the main branch is protected, which is ok. This will allow us to review
the build.
  • Loading branch information
nitriques committed Feb 27, 2025
1 parent 48c7212 commit 36c9eb5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ jobs:
run: pnpm sync
- name: build
run: pnpm build
- uses: stefanzweifel/git-auto-commit-action@master
if: ${{ github.ref_name == 'main' }}
- name: create pull request
id: pr
uses: peter-evans/create-pull-request@main
with:
commit_message: '(chore) Add build files'
commit-message: '(chore) Add build files'
title: '(chore) Add build files'
delete-branch: true
branch: build/${{ github.run_id }}
add-paths: packages/
reviewers: ${{ github.actor }}
assignees: ${{ github.actor }}

0 comments on commit 36c9eb5

Please sign in to comment.