From 755a124b509fbc08efc9c8003e2f4b19dcc6f9e5 Mon Sep 17 00:00:00 2001 From: ibuler Date: Sat, 14 Sep 2024 18:30:36 +0800 Subject: [PATCH] perf: checkout repo --- .github/workflows/build-base-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-base-image.yml b/.github/workflows/build-base-image.yml index 2c2efa825..73be7b005 100644 --- a/.github/workflows/build-base-image.yml +++ b/.github/workflows/build-base-image.yml @@ -25,6 +25,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -62,7 +64,6 @@ jobs: run: | git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git checkout -b ${{ github.event.pull_request.head.ref }} git add Dockerfile git commit -m "perf: Update Dockerfile with new base image tag" git push origin ${{ github.event.pull_request.head.ref }}