Skip to content

Commit

Permalink
ref instead of head_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
hqpho committed Nov 5, 2024
1 parent 65d9449 commit eba8ea7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/all-commits-in-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
git remote add dc https://github.com/datacommonsorg/website.git
git fetch dc
MASTER_BRANCH="dc/master"
SOURCE_BRANCH=$(echo ${{ github.head_ref }})
git branch -a
SOURCE_BRANCH=$(echo ${{ github.ref }})
# Get the list of commits in the source branch that are not in the master branch
MISSING_COMMITS=$(git log --pretty="%H - %s" $MASTER_BRANCH..$SOURCE_BRANCH --)
Expand Down

0 comments on commit eba8ea7

Please sign in to comment.