diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 12948813..d7159fcb 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -12,6 +12,8 @@ jobs: packages: write steps: - uses: actions/checkout@v3.5.3 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Log in to the Container registry uses: docker/login-action@v2.2.0 diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index c9098b92..1a470bab 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,7 +8,9 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout Repo - uses: actions/checkout@v1 + uses: actions/checkout@v3.5.3 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: build run: make docker-build diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e50ab4ac..3e06c46e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,6 +12,8 @@ jobs: packages: write steps: - uses: actions/checkout@v3.5.3 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Log in to the Container registry uses: docker/login-action@v2.2.0