diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a79c6ef..2b637a91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,7 @@ jobs: id: commit_prefix # Commit hash on pull request event would be the head commit of the branch; # on push event (to main, for example) we should take the commit post-push. - run: echo "short_hash=$(if [ ${{ github.event_name }} == 'pull_request' ]; then echo ${{ github.event.pull_request.head.sha }}; else echo ${{ github.event.push.after }}; fi | cut -c 1-7)" >> $GITHUB_OUTPUT + run: echo "short_hash=$(if [ ${{ github.event_name }} == 'pull_request' ]; then echo ${{ github.event.pull_request.head.sha }}; else echo ${{ github.event.after }}; fi | cut -c 1-7)" >> $GITHUB_OUTPUT - name: Build CLI binary run: cargo build -p committer_cli -r --bin committer_cli --target-dir CLI_TARGET