From 7528607eaab2ac1875d5553f2cb15ff7bc28c7e2 Mon Sep 17 00:00:00 2001 From: Tobias Brenner <19689801+brenner-tobias@users.noreply.github.com> Date: Thu, 20 Jan 2022 22:14:23 +0100 Subject: [PATCH] Create push-to-beta.yml --- .github/workflows/push-to-beta.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/push-to-beta.yml diff --git a/.github/workflows/push-to-beta.yml b/.github/workflows/push-to-beta.yml new file mode 100644 index 0000000..af90e62 --- /dev/null +++ b/.github/workflows/push-to-beta.yml @@ -0,0 +1,32 @@ +# This workflow pushes the main branch to the beta repo + +name: Push to beta repo + +on: + push: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + push: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a set of commands using the runners shell + - name: Pushes to beta repository + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} + with: + source-directory: '/' + destination-github-username: 'brenner-tobias' + destination-repository-name: 'ha-addons-beta' + user-email: 19689801+brenner-tobias@users.noreply.github.com + target-branch: main