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