Skip to content

Commit

Permalink
fix: git pull fast-forward before pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 20, 2024
1 parent bc5bd7e commit 3d850c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/package-version-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
git status
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git config pull.ff only
git pull origin "${{ github.head_ref }}"
git add force-app/main/default/classes/AdyenOMSConstants.cls sfdx-project.json
# Check if any of the files have been modified before committing
Expand Down
4 changes: 2 additions & 2 deletions scripts/update-app-info-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ PROJECT_LIBRARY_VERSION=$(yq -r '.packageDirectories[].dependencies[]? | select(
APEX_OMS_VERSION=$(awk -F"[']" '/MERCHANT_APP_VERSION_FOR_APP_INFO/ {print $2}' "$APEX_FILE")
APEX_LIBRARY_VERSION=$(awk -F"[']" '/ADYEN_LIBRARY_VERSION_FOR_APP_INFO/ {print $2}' "$APEX_FILE")

echo
# Print the branch name
echo "Branch: $BRANCH_NAME"

# Print the headers for better comparison
printf "%-25s %-25s\n" "sfdx-project.json VERSION" "AdyenOMSConstants VERSION"
printf "%-25s %-25s\n" "-------------------------" "-------------------------"

# Print the OMS and Library versions in a pretty format
printf "%-25s %-25s\n" "$PROJECT_OMS_VERSION (OMS)" "$APEX_OMS_VERSION (OMS)"
printf "%-25s %-25s\n" "$PROJECT_LIBRARY_VERSION (Library)" "$APEX_LIBRARY_VERSION (Library)"
echo

# Check if BASE_VERSION matches PROJECT_OMS_VERSION
if [ "$BRANCH_VERSION" != "$PROJECT_OMS_VERSION" ]; then
Expand Down

0 comments on commit 3d850c3

Please sign in to comment.