Skip to content

Commit

Permalink
use -m flag for apidiff to compare modules instead of packages (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendiknesbo authored Nov 6, 2023
1 parent 253f0fa commit 67bc08f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-drafter-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ jobs:
if [ -s changes.txt ]; then
echo "Detected Go changes. Checking API diff..."
apidiff -w new.txt ./...
apidiff -m -w new.txt ./...
git checkout origin/main
apidiff -w old.txt ./...
apidiff -m -w old.txt ./...
DIFFERENCE=$(apidiff old.txt new.txt)
DIFFERENCE=$(apidiff -m old.txt new.txt)
if [ "$DIFFERENCE" != "" ]; then
echo "API diff detected. $DIFFERENCE"
Expand Down

0 comments on commit 67bc08f

Please sign in to comment.