Skip to content

Commit

Permalink
Move short hash step before cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshbrntt committed Sep 18, 2024
1 parent 558d65a commit c3e2476
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Calculate short hash of commit
id: commit
run: echo "short_hash=$(echo $GITHUB_SHA | head -c 7)" >> "$GITHUB_OUTPUT"

- name: Cache project source
id: cache-project-source
uses: actions/cache@v4
Expand All @@ -24,10 +28,6 @@ jobs:
with:
submodules: true

- name: Calculate short hash of commit
id: commit
run: echo "short_hash=$(echo $GITHUB_SHA | head -c 7)" >> "$GITHUB_OUTPUT"

- name: Calculate project release version
id: project
run: |
Expand Down

0 comments on commit c3e2476

Please sign in to comment.