diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f3de0f783..d9323d9e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,17 +15,12 @@ jobs: - name: "Clone repository" uses: actions/checkout@v4 - - name: "Save hashes of HEAD and HEAD~ into environment variables" + - name: "Print some stuff" shell: bash run: | - echo "head_sha=$(git log -1 --format=%h)" >> "$GITHUB_ENV" - echo "head_prec_sha=$(git log -3 --format=%h | tail -1)" >> "$GITHUB_ENV" - - - name: "Print declared variables" - shell: bash - run: | - echo "head_sha = ${{ env.head_sha }}" - echo "head_prec_sha = ${{ env.head_prec_sha }}" + echo "branch = ${{ github.ref_name }}" + echo "head_sha = ${{ github.event.base_ref }}" + echo "head_prec_sha = ${{ github.event.before }}" - name: "Restore cached .agdai files" id: cache-agdai-restore