From 8212ab27e37247723ff27d72235637c61454d1bd Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 30 Mar 2021 22:03:10 +0200 Subject: [PATCH] Git fetch --- .github/workflows/build.yml | 1 - tests/makephar.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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)"