Skip to content

Commit

Permalink
fix: git pull rebase after committing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 20, 2024
1 parent 6448818 commit 77bbb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/package-version-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ jobs:
git config --global user.email '[email protected]'
git config pull.rebase true
git add force-app/main/default/classes/AdyenOMSConstants.cls sfdx-project.json
git pull origin "${{ github.head_ref }}"
# Check if any of the files have been modified before committing
if git diff --cached --quiet; then
echo "No changes detected. Skipping commit."
else
echo "Changes detected. Committing changes."
git commit -m "Updating versions on sfdx-project.json and AdyenOMSConstants.cls if needed"
git pull origin "${{ github.head_ref }}"
git push origin "HEAD:${{ github.head_ref }}"
fi
git status

0 comments on commit 77bbb71

Please sign in to comment.