From 51e921f54f6f74f9b7e70617c98c67e61fea88e5 Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Fri, 25 Sep 2026 09:03:42 -0400 Subject: [PATCH] now syncing github via shared workflow --- .gitea/workflows/publish.yaml | 35 +++++++++-------------------------- .gitea/workflows/tests.yaml | 2 +- 2 files changed, 10 insertions(+), 27 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 7593190..5c1b7c0 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -1,3 +1,5 @@ +# Sync GitHub - upload branch change to github, via the shared workflow + name: Sync GitHub on: @@ -11,31 +13,12 @@ on: jobs: sync: - runs-on: ubuntu-latest + uses: private/ci/.gitea/workflows/sync-github.yaml@v1 + with: + sync-target: ${{ vars.SYNC_GITHUB_TARGET }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Configure Git - run: | - git config --global user.name "Andrew Sync" - git config --global user.email "sync@digitaladapt.com" - - - name: Add GitHub Remote - env: - SYNC_TOKEN: ${{ secrets.SYNC_GITHUB_TOKEN }} - SYNC_TARGET: ${{ vars.SYNC_GITHUB_TARGET }} - run: | - git remote add github "https://digitaladapt:${SYNC_TOKEN}@github.com/$SYNC_TARGET" 2>/dev/null || git remote set-url github "https://digitaladapt:${SYNC_TOKEN}@github.com/$SYNC_TARGET" - - - name: Push Current Branch - run: | - git push github HEAD:${GITHUB_REF_NAME} - - - name: Push Tags - run: | - git push github --tags + # by default we do not alter existing github tags, but that can be changed here. + # force-tags: true + secrets: + SYNC_GITHUB_TOKEN: ${{ secrets.SYNC_GITHUB_TOKEN }} diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 5ef2290..e72c7b1 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -1,7 +1,7 @@ # Tests - ensure code quality, via the shared workflow. # # Checks include: PHPStan, PHPUnit, and PHP-CS-Fixer. -# + name: Tests on: