From 4f451fac6af54833abd849b25c37ef5de8e9c0b5 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Fri, 11 Feb 2022 08:11:27 +1300 Subject: [PATCH] Add workflow to trigger community repo update --- .github/workflows/deploy-community.yml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/deploy-community.yml diff --git a/.github/workflows/deploy-community.yml b/.github/workflows/deploy-community.yml new file mode 100644 index 0000000..b10aa1c --- /dev/null +++ b/.github/workflows/deploy-community.yml @@ -0,0 +1,35 @@ +name: Update Community Repo + +on: + workflow_dispatch: + inputs: + version: + description: The version to release + required: true + beta: + description: Whether to release a beta version + required: false + default: false + +jobs: + deploy-community-addons: + runs-on: ubuntu-latest + steps: + - if: ${{ contains(github.event.inputs.version, 'b') || github.event.inputs.beta }} + name: Publish beta release to community-addons repository + run: | + docker run --rm hassioaddons/repository-updater:latest \ + --repository hassio-addons/repository-beta \ + --addon esphome \ + --token "${TOKEN}" + env: + TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }} + - if: ${{ !contains(github.event.inputs.version, 'b') }} + name: Publish stable release to community-addons repository + run: | + docker run --rm hassioaddons/repository-updater:latest \ + --repository hassio-addons/repository \ + --addon esphome \ + --token "${TOKEN}" + env: + TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}