Skip to content

Commit

Permalink
PR head
Browse files Browse the repository at this point in the history
  • Loading branch information
hqpho committed Nov 5, 2024
1 parent f77851a commit edf4d3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/all-commits-in-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for accurate comparison
ref: ${{ github.ref }} # Check out the source branch
ref: ${{ github.event.pull_request.head.ref }} # Check out the PR head

- name: Check if commits exist in master
run: |
Expand All @@ -23,9 +23,9 @@ jobs:
MISSING_COMMITS=$(git log --no-merges --pretty="%H - %s" $MASTER_BRANCH..HEAD --)
if [[ -n "$MISSING_COMMITS" ]]; then
echo "ERROR: The following non-merge commits are not present in $MASTER_BRANCH:"
echo "ERROR: The following commits are not present in $MASTER_BRANCH:"
echo "$MISSING_COMMITS"
exit 1
fi
echo "All non-merge commits are present in $MASTER_BRANCH"
echo "All commits are present in $MASTER_BRANCH"

0 comments on commit edf4d3f

Please sign in to comment.