1
0
mirror of https://github.com/esphome/home-assistant-addon.git synced 2024-12-24 17:08:22 +01:00

Update community release workflows

This commit is contained in:
Jesse Hills 2022-02-16 21:46:22 +13:00
parent b6445c529a
commit 19fb45bcb3
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
2 changed files with 55 additions and 35 deletions

View File

@ -58,19 +58,29 @@ jobs:
needs: [create-release] needs: [create-release]
steps: steps:
- name: Publish beta release to community-addons repository - name: Publish beta release to community-addons repository
run: | uses: peter-evans/repository-dispatch@v1.1.3
docker run --rm hassioaddons/repository-updater:latest \ with:
--repository hassio-addons/repository-beta \ token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
--addon esphome \ repository: hassio-addons/repository-beta
--token "${TOKEN}" event-type: update
env: client-payload: >
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }} {
"addon": "esphome",
"name": "ESPHome",
"repository": "esphome/home-assistant-addon",
"version": "${{ github.event.inputs.version }}"
}
- if: ${{ !contains(github.event.inputs.version, 'b') }} - if: ${{ !contains(github.event.inputs.version, 'b') }}
name: Publish stable release to community-addons repository name: Publish stable release to community-addons repository
run: | uses: peter-evans/repository-dispatch@v1.1.3
docker run --rm hassioaddons/repository-updater:latest \ with:
--repository hassio-addons/repository \ token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
--addon esphome \ repository: hassio-addons/repository
--token "${TOKEN}" event-type: update
env: client-payload: >
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }} {
"addon": "esphome",
"name": "ESPHome",
"repository": "esphome/home-assistant-addon",
"version": "${{ github.event.inputs.version }}"
}

View File

@ -18,19 +18,29 @@ jobs:
steps: steps:
- if: ${{ contains(github.event.inputs.version, 'b') || github.event.inputs.beta == 'true' }} - if: ${{ contains(github.event.inputs.version, 'b') || github.event.inputs.beta == 'true' }}
name: Publish beta release to community-addons repository name: Publish beta release to community-addons repository
run: | uses: peter-evans/repository-dispatch@v1.1.3
docker run --rm hassioaddons/repository-updater:latest \ with:
--repository hassio-addons/repository-beta \ token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
--addon esphome \ repository: hassio-addons/repository-beta
--token "${TOKEN}" event-type: update
env: client-payload: >
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }} {
"addon": "esphome",
"name": "ESPHome",
"repository": "esphome/home-assistant-addon",
"version": "${{ github.event.inputs.version }}"
}
- if: ${{ !contains(github.event.inputs.version, 'b') }} - if: ${{ !contains(github.event.inputs.version, 'b') }}
name: Publish stable release to community-addons repository name: Publish stable release to community-addons repository
run: | uses: peter-evans/repository-dispatch@v1.1.3
docker run --rm hassioaddons/repository-updater:latest \ with:
--repository hassio-addons/repository \ token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
--addon esphome \ repository: hassio-addons/repository
--token "${TOKEN}" event-type: update
env: client-payload: >
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }} {
"addon": "esphome",
"name": "ESPHome",
"repository": "esphome/home-assistant-addon",
"version": "${{ github.event.inputs.version }}"
}