From 62b99c8488bb877fe21eeb3776ec07dad1271661 Mon Sep 17 00:00:00 2001 From: Zenit Shkreli <69572953+zenit2001@users.noreply.github.com> Date: Tue, 12 Dec 2023 14:01:04 +0100 Subject: [PATCH] chore: saving the cartridge folder in order to be available during commit --- .github/workflows/cartridges-commit.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cartridges-commit.yml b/.github/workflows/cartridges-commit.yml index 45dbad025..9f4ad7d6c 100644 --- a/.github/workflows/cartridges-commit.yml +++ b/.github/workflows/cartridges-commit.yml @@ -43,6 +43,8 @@ jobs: working-directory: adyen-salesforce-commerce-cloud run: | npm run transpile && npm run compile:js | tee build_output.txt + mkdir -p $GITHUB_WORKSPACE/cartridge + cp -R cartridge/* $GITHUB_WORKSPACE/cartridge shell: bash - name: Commit changes if: success() @@ -50,7 +52,7 @@ jobs: cd adyen-salesforce-commerce-cloud git config --local user.email "actions@github.com" git config --local user.name "GitHub Actions" - git add cartridge/**/* + git add $GITHUB_WORKSPACE/cartridge/* git commit -m "chore: committing the built /cartridge folder" git fetch origin git push origin HEAD:${{ github.head_ref }} --force-with-lease