diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d32e80c83..2c6622798 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,6 @@ jobs: uses: actions/checkout@v2 with: ssh-key: ${{ secrets.DEPLOY_KEY }} - fetch-depth: 0 - name: Setup PHP ${{ matrix.php }} uses: shivammathur/setup-php@v2 diff --git a/tests/makephar.sh b/tests/makephar.sh index 1e59cb539..20b8048a9 100755 --- a/tests/makephar.sh +++ b/tests/makephar.sh @@ -4,6 +4,8 @@ PHP_MAJOR_VERSION=$(php -r 'echo PHP_MAJOR_VERSION;') PHP_MINOR_VERSION=$(php -r 'echo PHP_MINOR_VERSION;') +git fetch + BRANCH=$(git rev-parse --abbrev-ref HEAD) TAG=$(git tag --points-at HEAD) COMMIT_MESSAGE="$(git log -1 --pretty=%B HEAD)"