Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagarjun Sanji committed Sep 18, 2024
1 parent 29f12d4 commit e3b66de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
package:
runs-on: ubuntu-latest
needs: setup
if: github.event_name != 'pull_request'
steps:
- name: Restore repository cache
uses: actions/cache@v4
Expand All @@ -65,7 +66,7 @@ jobs:

- name: Get latest commit
run: |
LAT_COMMIT=$(git log --format=%H --branches --max-count=1 2>/dev/null || git rev-parse --short HEAD 2>/dev/null || echo "${GITHUB_PULL_REQUEST_NUMBER:-0}")
LAT_COMMIT=$(git log --format=%H --branches --max-count=1 || echo "0")
echo "LAT_COMMIT=$LAT_COMMIT" >> $GITHUB_ENV
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}

Expand Down

0 comments on commit e3b66de

Please sign in to comment.