From c890cd0b637fd24cce2fed67050df0d542ce5473 Mon Sep 17 00:00:00 2001 From: alexanderbrunker-star Date: Sun, 19 Apr 2026 19:34:46 +0200 Subject: [PATCH 1/2] SF-30: fix Linear workflow secret guard syntax --- .github/workflows/linear-done-automerge.yml | 6 ++++-- .github/workflows/linear-pr-sync.yml | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linear-done-automerge.yml b/.github/workflows/linear-done-automerge.yml index ee23493..e77c6e1 100644 --- a/.github/workflows/linear-done-automerge.yml +++ b/.github/workflows/linear-done-automerge.yml @@ -5,9 +5,12 @@ on: - cron: "*/15 * * * *" workflow_dispatch: +env: + LINEAR_API_TOKEN: ${{ secrets.LINEAR_API_TOKEN }} + jobs: automerge: - if: ${{ secrets.LINEAR_API_TOKEN != '' }} + if: ${{ env.LINEAR_API_TOKEN != '' }} runs-on: ubuntu-latest permissions: contents: write @@ -16,6 +19,5 @@ jobs: - uses: actions/checkout@v6 - name: Merge open PRs whose Linear ticket is Done env: - LINEAR_API_TOKEN: ${{ secrets.LINEAR_API_TOKEN }} GITHUB_TOKEN: ${{ github.token }} run: node scripts/linear/automerge_done_tickets.mjs diff --git a/.github/workflows/linear-pr-sync.yml b/.github/workflows/linear-pr-sync.yml index 00df830..616fe6f 100644 --- a/.github/workflows/linear-pr-sync.yml +++ b/.github/workflows/linear-pr-sync.yml @@ -4,9 +4,12 @@ on: pull_request: types: [opened, reopened, synchronize, ready_for_review, converted_to_draft, closed] +env: + LINEAR_API_TOKEN: ${{ secrets.LINEAR_API_TOKEN }} + jobs: linear-pr-sync: - if: ${{ secrets.LINEAR_API_TOKEN != '' }} + if: ${{ env.LINEAR_API_TOKEN != '' }} runs-on: ubuntu-latest permissions: contents: read @@ -14,6 +17,4 @@ jobs: steps: - uses: actions/checkout@v6 - name: Sync Linear state from PR event - env: - LINEAR_API_TOKEN: ${{ secrets.LINEAR_API_TOKEN }} run: node scripts/linear/pr_state_sync.mjs From 240bafa46e008f8a63c5acf2b5b1b10911b320f3 Mon Sep 17 00:00:00 2001 From: alexanderbrunker-star Date: Sun, 19 Apr 2026 21:57:49 +0200 Subject: [PATCH 2/2] SF-30: reduce hosted Actions usage for private repo --- .github/workflows/ci.yml | 10 ---------- .github/workflows/linear-done-automerge.yml | 2 -- 2 files changed, 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2da1844..2ce6372 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - "feature/**" pull_request: jobs: @@ -19,12 +18,3 @@ jobs: with: node-version: 22 - run: npm test - - core-swift: - runs-on: macos-14 - defaults: - run: - working-directory: sonicflow_app/core-swift - steps: - - uses: actions/checkout@v6 - - run: swift test diff --git a/.github/workflows/linear-done-automerge.yml b/.github/workflows/linear-done-automerge.yml index e77c6e1..e3bd0db 100644 --- a/.github/workflows/linear-done-automerge.yml +++ b/.github/workflows/linear-done-automerge.yml @@ -1,8 +1,6 @@ name: Linear Done Auto-Merge on: - schedule: - - cron: "*/15 * * * *" workflow_dispatch: env: