From 5fb9431dae1d9b376946fb8673011dc291095a8a Mon Sep 17 00:00:00 2001 From: SebClem Date: Tue, 10 Sep 2024 14:18:02 +0200 Subject: [PATCH] Use run instead of action --- .github/workflows/build_addon.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_addon.yml b/.github/workflows/build_addon.yml index 87673cd..1f47684 100644 --- a/.github/workflows/build_addon.yml +++ b/.github/workflows/build_addon.yml @@ -178,6 +178,7 @@ jobs: with: repository: Sebclem/sebclem-hassio-addon-repository path: "repository" + token: ${{ secrets.PAT_PR }} - name: Get branch names id: branch-names @@ -214,10 +215,10 @@ jobs: commitChange: false - name: Commit and push - uses: actions-js/push@v1.5 - with: - github_token: ${{ secrets.PAT_PR }} - directory: "repository" - message: "Update Nextcloud Backup to ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number }}" - branch: "${{ steps.branch-names.outputs.current_branch }}" - repository: "Sebclem/sebclem-hassio-addon-repository" + run: | + cd repository + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "Update Nextcloud Backup to ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number }}" + git push