From 68f5e7c286a463f52d5db508693986d3e967a499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20V=C3=A5ge=20Fannemel?= <34712686+asmfstatoil@users.noreply.github.com> Date: Thu, 30 Mar 2023 11:58:55 +0200 Subject: [PATCH 1/3] Update release_with_jars.yml (#605) --- .github/workflows/release_with_jars.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release_with_jars.yml b/.github/workflows/release_with_jars.yml index 6c1b05ecf..87e836c32 100644 --- a/.github/workflows/release_with_jars.yml +++ b/.github/workflows/release_with_jars.yml @@ -120,16 +120,17 @@ jobs: - run: cd lib && mkdir libj8 && mv *Java8.jar libj8/ && cd .. # Will fail if branch NeqSim-jars-updated-N.N.N already exists - - name: Push files to neqsimpython repo - uses: dmnemec/copy_file_to_another_repo_action@v1.1.1 + - name: Push directory to another repository + uses: cpina/github-action-push-to-another-repository@v1.5.1 env: - API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} + SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} with: - source_file: lib - destination_repo: 'equinor/neqsimpython' - destination_folder: neqsim/ + source-directory: 'lib' + destination-github-username: 'equinor' + destination-repository-name: 'neqsimpython' + user-email: asmf@equinor.com + target-branch: main + target-directory: neqsim/lib destination_branch: NeqSim-jars-updated-${{ needs.get_versions.outputs.version_8 }} commit_message: 'chore: updated jar-files' - user_email: 'asmf@equinor.com' - user_name: 'asmfstatoil' From 6113e34d5faa0e023bfc27da637894e66f716544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20V=C3=A5ge=20Fannemel?= <34712686+asmfstatoil@users.noreply.github.com> Date: Thu, 30 Mar 2023 12:05:02 +0200 Subject: [PATCH 2/3] Update release_with_jars.yml --- .github/workflows/release_with_jars.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release_with_jars.yml b/.github/workflows/release_with_jars.yml index 87e836c32..d4047842d 100644 --- a/.github/workflows/release_with_jars.yml +++ b/.github/workflows/release_with_jars.yml @@ -129,8 +129,7 @@ jobs: destination-github-username: 'equinor' destination-repository-name: 'neqsimpython' user-email: asmf@equinor.com - target-branch: main + target-branch: NeqSim-jars-updated-${{ needs.get_versions.outputs.version_8 }} target-directory: neqsim/lib - destination_branch: NeqSim-jars-updated-${{ needs.get_versions.outputs.version_8 }} commit_message: 'chore: updated jar-files' From 4d93e73b408ce71e49708aeb3eb213e967ded9e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20V=C3=A5ge=20Fannemel?= <34712686+asmfstatoil@users.noreply.github.com> Date: Thu, 30 Mar 2023 12:56:52 +0200 Subject: [PATCH 3/3] Update release_with_jars.yml --- .github/workflows/release_with_jars.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_with_jars.yml b/.github/workflows/release_with_jars.yml index d4047842d..be9bf8073 100644 --- a/.github/workflows/release_with_jars.yml +++ b/.github/workflows/release_with_jars.yml @@ -119,7 +119,14 @@ jobs: - run: mkdir lib && cp *.jar lib/ - run: cd lib && mkdir libj8 && mv *Java8.jar libj8/ && cd .. - # Will fail if branch NeqSim-jars-updated-N.N.N already exists + - name: Create release branch in neqsimpython repo + uses: GuillaumeFalourd/create-other-repo-branch-action@v1.5 + with: + repository_owner: Equinor + repository_name: neqsimpython + new_branch_name: NeqSim-jars-updated-${{ needs.get_versions.outputs.version_8 }} + ssh_deploy_key: ${{ secrets.SSH_DEPLOY_KEY }} + - name: Push directory to another repository uses: cpina/github-action-push-to-another-repository@v1.5.1 env: