From 922fca0015d99cd2d2b643cb6b60dedd2c6c635d Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Thu, 7 Apr 2022 18:35:30 +0800 Subject: [PATCH] fix workdir issue for image action (#230) Signed-off-by: Jian Qiu --- .github/workflows/go-postsubmit.yml | 5 +++++ .github/workflows/go-release.yml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/go-postsubmit.yml b/.github/workflows/go-postsubmit.yml index b4f11a5fb..426976034 100644 --- a/.github/workflows/go-postsubmit.yml +++ b/.github/workflows/go-postsubmit.yml @@ -50,6 +50,11 @@ jobs: runs-on: ubuntu-latest needs: [ images ] steps: + - name: checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 1 + path: go/src/open-cluster-management.io/registration - name: create run: | echo ${{ secrets.DOCKER_PASSWORD }} | docker login quay.io --username ${{ secrets.DOCKER_USER }} --password-stdin diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index 7a6355e8d..694f335f2 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -56,6 +56,11 @@ jobs: runs-on: ubuntu-latest needs: [ images ] steps: + - name: checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 1 + path: go/src/open-cluster-management.io/registration - name: get release version run: | echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV @@ -81,6 +86,11 @@ jobs: name: release runs-on: ubuntu-latest steps: + - name: checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 1 + path: go/src/open-cluster-management.io/registration - name: get release version run: | echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV