From a06bd5ed3f45c3b575a68bde8a5413dac7cfc800 Mon Sep 17 00:00:00 2001 From: Trevor Schirmer Date: Tue, 7 Jul 2026 09:39:14 -0400 Subject: [PATCH] Consolidate CI, weekly, and autoassign into shared reusable workflows Replaces inline version-pinned actions with thin callers of ApolloAutomation/Workflows reusable workflows referenced @main. Leaf repo now contains zero dependabot-bumpable refs; action version pins are centralized in the Workflows repo. Dependabot schedule relaxed to monthly as a safety net. Co-Authored-By: Claude Fable 5 --- .github/workflows/autoassign.yml | 25 +++++++++++++------------ .github/workflows/ci.yml | 32 ++++++-------------------------- 2 files changed, 19 insertions(+), 38 deletions(-) diff --git a/.github/workflows/autoassign.yml b/.github/workflows/autoassign.yml index 0158e68..a70c3da 100644 --- a/.github/workflows/autoassign.yml +++ b/.github/workflows/autoassign.yml @@ -1,19 +1,20 @@ name: Auto Assign + on: issues: types: [opened] pull_request: types: [opened] + +permissions: + issues: write + pull-requests: write + jobs: - run: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - name: 'Auto-assign issue' - uses: pozil/auto-assign-issue@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: TrevorSchirmer - numOfAssignee: 1 + auto-assign: + # Skip auto-assign for pull requests from forks due to GITHUB_TOKEN permission restrictions + if: github.event_name == 'issues' || github.event.pull_request.head.repo.full_name == github.repository + uses: ApolloAutomation/Workflows/.github/workflows/autoassign.yml@main + with: + assignees: TrevorSchirmer + num-of-assignees: 1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 640efb6..7816cea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,39 +4,19 @@ on: pull_request: permissions: - # Allow GITHUB_TOKEN to add labels to pull requests pull-requests: write issues: write contents: read - id-token: write jobs: label-check: name: Label Check uses: ApolloAutomation/Workflows/.github/workflows/label-check.yml@main - - ci: - name: Building ${{ matrix.file }} / ESPHome ${{ matrix.esphome-version }} / ESPHome ${{ matrix.esphome-version }} - runs-on: ubuntu-latest - strategy: - matrix: - file: - - Integrations/ESPHome/ESK-1.yaml - esphome-version: - - stable - - beta - - dev - steps: - - name: Checkout source code - uses: actions/checkout@v5.0.0 - - name: Build ESPHome firmware to verify configuration - uses: esphome/build-action@v7 - with: - yaml-file: ${{ matrix.file }} - - - - - + ci: + name: CI + uses: ApolloAutomation/Workflows/.github/workflows/esphome-ci.yml@main + with: + yaml-files: | + Integrations/ESPHome/ESK-1.yaml