From f91943b6504ad3aef7fa7dd0df0049e341a25b57 Mon Sep 17 00:00:00 2001 From: "Noah Hanford (spaced)" Date: Wed, 4 Mar 2026 10:20:30 -0500 Subject: [PATCH 1/3] add sync workflow --- .github/workflows/sync-branches.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/sync-branches.yml diff --git a/.github/workflows/sync-branches.yml b/.github/workflows/sync-branches.yml new file mode 100644 index 0000000..33d5c1e --- /dev/null +++ b/.github/workflows/sync-branches.yml @@ -0,0 +1,22 @@ +name: Sync dev to main +on: + push: + branches: + - dev + - develop + workflow_dispatch: + +permissions: + contents: write + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v5 + - name: Push changes + uses: ad-m/github-push-action@master + with: + branch: main + force: true From d3302eaf4ed49544d7006f8a3d26de5aeeafaa0c Mon Sep 17 00:00:00 2001 From: Noah Hanford Date: Wed, 4 Mar 2026 10:37:48 -0500 Subject: [PATCH 2/3] Add GitHub App token retrieval step to workflow --- .github/workflows/sync-branches.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/sync-branches.yml b/.github/workflows/sync-branches.yml index 33d5c1e..b67b67e 100644 --- a/.github/workflows/sync-branches.yml +++ b/.github/workflows/sync-branches.yml @@ -15,8 +15,15 @@ jobs: steps: - uses: actions/checkout@v5 + - name: Get PAT for app + uses: actions/create-github-app-token@v2 + id: app-token + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_SECRET }} - name: Push changes uses: ad-m/github-push-action@master with: + github_token: ${{ steps.app-token.outputs.token }} branch: main force: true From 4c50055b54ef18753507f0e3bbf645b49b60647b Mon Sep 17 00:00:00 2001 From: Noah Hanford Date: Wed, 4 Mar 2026 10:40:35 -0500 Subject: [PATCH 3/3] Update sync-branches.yml