diff --git a/.github/workflows/all-commits-in-master.yml b/.github/workflows/all-commits-in-master.yml index 4f96990a93..63f050a496 100644 --- a/.github/workflows/all-commits-in-master.yml +++ b/.github/workflows/all-commits-in-master.yml @@ -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 --)