From f81d991093526443c84e5979067d602a748edd9f Mon Sep 17 00:00:00 2001 From: Kyle Finley Date: Wed, 21 Aug 2024 10:36:51 -0400 Subject: [PATCH] update hass-repositry.updater workflow to use PAT instead of app --- .github/workflows/hass-repository.updater.yml | 16 ++-------------- README.md | 7 ++++++- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/hass-repository.updater.yml b/.github/workflows/hass-repository.updater.yml index b6ce399..bf225c0 100644 --- a/.github/workflows/hass-repository.updater.yml +++ b/.github/workflows/hass-repository.updater.yml @@ -3,14 +3,8 @@ name: Repository Updater # yamllint disable-line rule:truthy on: workflow_call: - inputs: - app-id: - default: ${{ vars.FINLEY_APP_ID }} - description: ID of a GitHub application for which to generate an authentication token. - required: false - type: string secrets: - app-private-key: + UPDATER_TOKEN: required: true concurrency: @@ -21,15 +15,9 @@ jobs: name: Publish add-on update runs-on: ubuntu-latest steps: - - name: 🔒 Create app token - id: auth - uses: actions/create-github-app-token@v1 - with: - app-id: ${{ inputs.app-id }} - private-key: ${{ secrets.app-private-key }} - name: 🚀 Run Repository Updater uses: hassio-addons/repository-updater@v1.3.0 with: addon: ${{ github.event.client_payload.addon }} repository: ${{ github.repository }} - token: ${{ steps.auth.outputs.token }} + token: ${{ secrets.UPDATER_TOKEN }} diff --git a/README.md b/README.md index 621a112..dff8565 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,11 @@ name: Repository Updater # yamllint disable-line rule:truthy on: + push: + branch: + - master + paths: + - .github/workflows/repository-updater.yml repository_dispatch: types: ["update"] @@ -117,7 +122,7 @@ jobs: workflows: uses: finleyfamily/workflows/.github/workflows/hass-repository.updater.yml@master secrets: - app-private-key: ${{ secrets.FINLEY_APP_PRIVATE_KEY }} + UPDATER_TOKEN: ${{ secrets.HASS_UPDATER_TOKEN }} ``` ## pull_request_target