From 25466e7a3c56f22257b9154efdf1bba95446e24b Mon Sep 17 00:00:00 2001 From: maxisoft Date: Sat, 27 Jul 2024 21:17:02 +0200 Subject: [PATCH] feat: update push-to-another-repository action and add branch creation - Updated cpina/github-action-push-to-another-repository to version 1.7.2 - Added create-target-branch-if-needed and target-branch parameters to ensure the target branch is created if it doesn't exist --- .github/workflows/doit.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doit.yml b/.github/workflows/doit.yml index 2a6aa5c..d72ec57 100644 --- a/.github/workflows/doit.yml +++ b/.github/workflows/doit.yml @@ -135,14 +135,16 @@ jobs: echo "DEPLOY_TO_REPOSITORY prepared" >> $GITHUB_STEP_SUMMARY - name: Push kernels directory to another repository - uses: cpina/github-action-push-to-another-repository@v1 + uses: cpina/github-action-push-to-another-repository@v1.7.2 if: ${{ env.DEPLOY_TO_REPOSITORY == 'true' && github.actor == github.repository_owner }} with: source-directory: tmp destination-github-username: ${{ env.DESTINATION_REPOSITORY_USERNAME || github.actor }} + destination-repository-name: ${{ env.DESTINATION_REPOSITORY_NAME }} user-name: ${{ github.actor }} user-email: ${{ github.actor }}@users.noreply.github.com - destination-repository-name: ${{ env.DESTINATION_REPOSITORY_NAME }} + create-target-branch-if-needed: true + target-branch: main env: SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}