From 6cd60a59aae428123d45810996f4ac6b2c4e5c52 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 17 Dec 2024 13:35:41 -0800 Subject: [PATCH] [actions] use shared action --- .github/workflows/rebase.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 18181913..b9e1712f 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -2,21 +2,8 @@ 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 - - steps: - - uses: actions/checkout@v3 - - uses: ljharb/rebase@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ljharb/actions/.github/workflows/rebase.yml@main + secrets: + token: ${{ secrets.GITHUB_TOKEN }}