Skip to content

Commit

Permalink
chore: saving the cartridge folder in order to be available during co…
Browse files Browse the repository at this point in the history
…mmit
  • Loading branch information
zenit2001 committed Dec 12, 2023
1 parent d8fdac1 commit 62b99c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cartridges-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ 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()
run: |
cd adyen-salesforce-commerce-cloud
git config --local user.email "[email protected]"
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

0 comments on commit 62b99c8

Please sign in to comment.