diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a689b1e..2f8e2dd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,17 +1,15 @@ -# To get started with Dependabot version updates, you'll need to specify which - # package ecosystems to update and where the package manifests are located. - # Please see the documentation for all configuration options: - # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - - version: 2 - updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - commit-message: - prefix: "chore(ci): " - groups: - github-actions: - patterns: - - "*" \ No newline at end of file +# Action version pins live in ApolloAutomation/Workflows (reusable workflows +# referenced @main), so this config normally has nothing to update. It stays +# as a safety net in case a version-pinned action is added here later. +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + commit-message: + prefix: "chore(ci): " + groups: + github-actions: + patterns: + - "*" diff --git a/.github/workflows/autoassign.yml b/.github/workflows/autoassign.yml index d4895a8..be0b7f4 100644 --- a/.github/workflows/autoassign.yml +++ b/.github/workflows/autoassign.yml @@ -7,16 +7,16 @@ on: types: [opened] pull_request_target: 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@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: bharvey88 - 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: bharvey88 + num-of-assignees: 1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2037d6c..0ef5150 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,26 +5,14 @@ on: permissions: contents: read - id-token: write jobs: ci: - name: Building ${{ matrix.file }} / ESPHome ${{ matrix.esphome-version }} / ESPHome ${{ matrix.esphome-version }} - runs-on: ubuntu-latest - strategy: - matrix: - file: - - Integrations/ESPHome/AIR-1.yaml - - Integrations/ESPHome/AIR-1_BLE.yaml - - Integrations/ESPHome/AIR-1_Factory.yaml - esphome-version: - - stable - - beta - - dev - steps: - - name: Checkout source code - uses: actions/checkout@v6.0.2 - - name: Build ESPHome firmware to verify configuration - uses: esphome/build-action@v7 - with: - yaml-file: ${{ matrix.file }} \ No newline at end of file + name: CI + uses: ApolloAutomation/Workflows/.github/workflows/esphome-ci.yml@main + with: + yaml-files: | + Integrations/ESPHome/AIR-1.yaml + Integrations/ESPHome/AIR-1_BLE.yaml + Integrations/ESPHome/AIR-1_Factory.yaml + diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index 9eff38d..9f8d09a 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -4,24 +4,16 @@ on: schedule: - cron: '0 0 * * 1' +permissions: + contents: read + jobs: build: - name: Building ${{ matrix.file }} / ESPHome ${{ matrix.esphome-version }} / ESPHome ${{ matrix.esphome-version }} - runs-on: ubuntu-latest - strategy: - matrix: - file: - - Integrations/ESPHome/AIR-1.yaml - - Integrations/ESPHome/AIR-1_BLE.yaml - - Integrations/ESPHome/AIR-1_Factory.yaml - esphome-version: - - stable - - beta - - dev - steps: - - name: Checkout source code - uses: actions/checkout@v6.0.2 - - name: Build ESPHome firmware to verify configuration - uses: esphome/build-action@v7 - with: - yaml-file: ${{ matrix.file }} \ No newline at end of file + name: Weekly Build + uses: ApolloAutomation/Workflows/.github/workflows/esphome-ci.yml@main + with: + yaml-files: | + Integrations/ESPHome/AIR-1.yaml + Integrations/ESPHome/AIR-1_BLE.yaml + Integrations/ESPHome/AIR-1_Factory.yaml + diff --git a/Datasheets/AIR-1_Datasheet.pdf b/Datasheets/AIR-1_Datasheet.pdf new file mode 100644 index 0000000..eb7698f Binary files /dev/null and b/Datasheets/AIR-1_Datasheet.pdf differ diff --git a/Integrations/ESPHome/AIR-1_BLE.yaml b/Integrations/ESPHome/AIR-1_BLE.yaml index 2dd6b42..89d4b0e 100644 --- a/Integrations/ESPHome/AIR-1_BLE.yaml +++ b/Integrations/ESPHome/AIR-1_BLE.yaml @@ -16,6 +16,9 @@ esphome: on_boot: - priority: 500 then: + - text_sensor.template.publish: + id: apollo_firmware_version + state: "${version}" - lambda: |- id(deep_sleep_1).set_sleep_duration(id(deep_sleep_sleep_duration).state * 60 * 60 * 1000); - if: diff --git a/Integrations/ESPHome/AIR-1_Factory.yaml b/Integrations/ESPHome/AIR-1_Factory.yaml index e42e24c..69e57c6 100644 --- a/Integrations/ESPHome/AIR-1_Factory.yaml +++ b/Integrations/ESPHome/AIR-1_Factory.yaml @@ -11,6 +11,9 @@ esphome: on_boot: - priority: 500 then: + - text_sensor.template.publish: + id: apollo_firmware_version + state: "${version}" - lambda: |- id(deep_sleep_1).set_sleep_duration(id(deep_sleep_sleep_duration).state * 60 * 1000); - if: diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 1a66c6a..0000000 --- a/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,13 +0,0 @@ -Version: - -Adds: - -Fixes: - -Breaks: - - - -Checks: -- [ ] Documentation Updated -- [ ] Build Number Incremented In AIR-1.yaml \ No newline at end of file