Skip to content

Commit

Permalink
Print out some more information in the action
Browse files Browse the repository at this point in the history
  • Loading branch information
ayberkt committed Sep 22, 2024
1 parent 85833b0 commit 0e33b06
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e33b06

Please sign in to comment.