Skip to content

Commit

Permalink
chore: delete branch on origin (#3298)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Jul 1, 2024
1 parent cd6bb82 commit 0ce7f8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
PR_NUMBER: ${{ github.event.number }}

- name: update generation commend
- name: update generation comment
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: Cleanup generated branch

on:
pull_request:
types: closed
types: [closed]

jobs:
cleanup:
runs-on: ubuntu-22.04
timeout-minutes: 10
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/codegen/pushGeneratedCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function pushGeneratedCode(): Promise<void> {
const branchToPush = isMainBranch ? baseBranch : `generated/${baseBranch}`;

if (!isMainBranch) {
await run(`git push -d generated/${baseBranch} || true`);
await run(`git push -d origin generated/${baseBranch} || true`);

console.log(`Creating branch for generated code: '${branchToPush}'`);
await run(`git checkout -b ${branchToPush}`);
Expand Down

0 comments on commit 0ce7f8a

Please sign in to comment.