Skip to content

Commit

Permalink
update hass-repositry.updater workflow to use PAT instead of app
Browse files Browse the repository at this point in the history
  • Loading branch information
ITProKyle committed Aug 21, 2024
1 parent 77f7cde commit f81d991
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/hass-repository.updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/[email protected]
with:
addon: ${{ github.event.client_payload.addon }}
repository: ${{ github.repository }}
token: ${{ steps.auth.outputs.token }}
token: ${{ secrets.UPDATER_TOKEN }}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,19 @@ name: Repository Updater

# yamllint disable-line rule:truthy
on:
push:
branch:
- master
paths:
- .github/workflows/repository-updater.yml
repository_dispatch:
types: ["update"]

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
Expand Down

0 comments on commit f81d991

Please sign in to comment.