Skip to content

Commit

Permalink
Merge c18f8c4 into d57438f
Browse files Browse the repository at this point in the history
  • Loading branch information
zenit2001 authored Dec 12, 2023
2 parents d57438f + c18f8c4 commit aa18209
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/cartridges-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release Workflow

on:
pull_request:

jobs:
commit-the-cartridge:
if: ${{ github.actor != 'renovate[bot]' || github.actor != 'lgtm-com[bot]' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- sfra-version: 'v6.1.0'
sfcc-hostname-secret: 'SFCC_HOSTNAME_SFRA6'
code-version-secret: 'SFCC_CODE_VERSION_SFRA6'
steps:
- name: Checkout SFRA code
uses: actions/checkout@v3
with:
repository: SalesforceCommerceCloud/storefront-reference-architecture
ref: ${{ matrix.sfra-version }}
ssh-key: ${{ secrets.SERVICE_ACCOUNT_SSH_KEY }}
path: storefront-reference-architecture
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Checkout
uses: actions/checkout@v3
with:
path: adyen-salesforce-commerce-cloud
fetch-depth: 0
- name: Install SFRA dependencies
working-directory: storefront-reference-architecture
run: npm install
- name: Install Adyen SFCC dependencies
working-directory: adyen-salesforce-commerce-cloud
run: npm install
- name: Build the code
working-directory: adyen-salesforce-commerce-cloud
run: |
npm run transpile && npm run compile:js
mkdir -p $GITHUB_WORKSPACE/cartridges
cp -R cartridges/* $GITHUB_WORKSPACE/cartridges
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 cartridges/**/*
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 aa18209

Please sign in to comment.