Fix trigger workflow, support non-default remotes

This commit is contained in:
Bart Thomee
2025-10-16 16:27:32 -04:00
parent f71d058c29
commit b4dbe8d7e7
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ jobs:
uses: ./.github/workflows/reusable-check-missing-commits.yml
check-single-commit:
if: ${{ github.event_name == 'merge_group' }}
if: ${{ github.event_name == 'push' }}
uses: ./.github/workflows/reusable-check-commit-message.yml
build-test:

View File

@@ -81,7 +81,7 @@ owner=$(gh pr view --json "headRepositoryOwner" --jq '.headRepositoryOwner.login
user=$(gh api user --jq '.login')
echo "The PR is owned by '${owner}'. The current user is '${user}'."
if [ "${owner}" = 'XRPLF' ] || [ "${owner}" = "${user}" ]; then
remote="origin"
remote="$(git remote -v | grep 'XRPLF/rippled.git (push)' | cut -f1)"
else
remote="${owner}"
fi