From 8a04a68ea1b9651a4f07a2c87fb58c98633a9714 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 20 Dec 2023 15:27:47 -0800 Subject: [PATCH] [actions] use reusable rebase action --- .github/workflows/rebase.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 8b2a811..ca2115a 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -2,21 +2,9 @@ name: Automatic Rebase on: [pull_request_target] -permissions: - contents: read - jobs: _: - permissions: - contents: write # for ljharb/rebase to push code to rebase - pull-requests: read # for ljharb/rebase to get info about PR - - name: "Automatic Rebase" - - runs-on: ubuntu-latest + uses: ljharb/actions/.github/workflows/rebase.yml@main + secrets: + token: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v4 - - uses: ljharb/rebase@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}