Skip to content

Commit

Permalink
fix: testing the if condintion, job shouldn't run v2
Browse files Browse the repository at this point in the history
  • Loading branch information
zenit2001 committed Dec 14, 2023
1 parent 6e3e123 commit 88ed97d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cartridges-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ name: Release Workflow

on:
pull_request:
types:
- opened
- synchronize


jobs:
commit-the-cartridge:
if: ${{ (github.actor != 'renovate[bot]' || github.actor != 'lgtm-com[bot]')}}
if: |
github.event_name == 'pull_request' &&
contains(github.head_ref, 'release')
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -46,7 +51,7 @@ jobs:
cp -R cartridges/* $GITHUB_WORKSPACE/cartridges
shell: bash
- name: Commit /cartridges folder
if: success() && '[[ "${{ github.ref }}" == "refs/heads/release/"* ]]'
if: success()
run: |
cd adyen-salesforce-commerce-cloud
git config --local user.email "[email protected]"
Expand All @@ -56,7 +61,7 @@ jobs:
git fetch origin
git push origin HEAD:${{ github.head_ref }} --force-with-lease
- name: Commit .project files
if: success() && '[[ "${{ github.ref }}" == "refs/heads/release/"* ]]'
if: success()
run: |
cd adyen-salesforce-commerce-cloud/cartridges
for name in "int_adyen_overlay" "int_adyen_SFRA" "bm_adyen"; do
Expand Down

0 comments on commit 88ed97d

Please sign in to comment.