Skip to content

Commit

Permalink
updated checkout options to ensure the correct repository and referen…
Browse files Browse the repository at this point in the history
…ce are checked out

Signed-off-by: yash-zededa <[email protected]>
  • Loading branch information
yash-zededa authored and yash-zededa committed Jul 10, 2024
1 parent 7ad49e3 commit fd02b02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
steps:
- name: Starting Report
run: |
echo Git Ref: ${{ github.ref }}
echo Git Ref: ${{ github.event.pull_request.head.ref }}
echo GitHub Event: ${{ github.event_name }}
echo Disk usage
df -h
Expand All @@ -42,15 +42,15 @@ jobs:
docker system prune --all --force --volumes
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

- name: Login to Docker Hub
if: ${{ github.event.repository.full_name }}== 'lf-edge/eve'
uses: docker/login-action@v3
with:
username: ${{ secrets.RELEASE_DOCKERHUB_ACCOUNT }}
password: ${{ secrets.RELEASE_DOCKERHUB_TOKEN }}

- name: ensure zstd for cache # this should be removed once the arm64 VM includes zstd
if: ${{ matrix.os == 'buildjet-4vcpu-ubuntu-2204-arm' || matrix.os == 'arm64-secure' }}
run: |
Expand Down

0 comments on commit fd02b02

Please sign in to comment.