diff --git a/.github/workflows/go-postsubmit.yml b/.github/workflows/go-postsubmit.yml index 400f32a1..59a68072 100644 --- a/.github/workflows/go-postsubmit.yml +++ b/.github/workflows/go-postsubmit.yml @@ -24,7 +24,7 @@ jobs: arch: [ amd64, arm64 ] steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 path: go/src/open-cluster-management.io/addon-framework @@ -51,7 +51,7 @@ jobs: needs: [ images ] steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 path: go/src/open-cluster-management.io/addon-framework diff --git a/.github/workflows/go-presubmit.yml b/.github/workflows/go-presubmit.yml index 7d4734d2..823c2be2 100644 --- a/.github/workflows/go-presubmit.yml +++ b/.github/workflows/go-presubmit.yml @@ -11,10 +11,6 @@ env: # Common versions GO_VERSION: '1.21' GO_REQUIRED_MIN_VERSION: '' - GOPATH: '/home/runner/work/addon-framework/addon-framework/go' -defaults: - run: - working-directory: go/src/open-cluster-management.io/addon-framework jobs: verify: @@ -22,10 +18,9 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: install Go uses: actions/setup-go@v3 with: @@ -38,10 +33,9 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: install Go uses: actions/setup-go@v3 with: @@ -54,10 +48,9 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: install Go uses: actions/setup-go@v3 with: @@ -70,10 +63,9 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: install Go uses: actions/setup-go@v3 with: @@ -86,10 +78,9 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: install Go uses: actions/setup-go@v3 with: @@ -102,10 +93,9 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: install Go uses: actions/setup-go@v3 with: @@ -134,10 +124,9 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: install Go uses: actions/setup-go@v3 with: diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index e358b799..0a1091da 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -8,23 +8,17 @@ env: # Common versions GO_VERSION: '1.21' GO_REQUIRED_MIN_VERSION: '' - GOPATH: '/home/runner/work/addon-framework/addon-framework/go' GITHUB_REF: ${{ github.ref }} -defaults: - run: - working-directory: go/src/open-cluster-management.io/addon-framework - jobs: env: name: prepare release env runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: get release version run: | echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV @@ -44,10 +38,9 @@ jobs: arch: [ amd64, arm64 ] steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: install Go uses: actions/setup-go@v3 with: @@ -71,10 +64,9 @@ jobs: needs: [ env, images ] steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: create run: | echo ${{ secrets.DOCKER_PASSWORD }} | docker login quay.io --username ${{ secrets.DOCKER_USER }} --password-stdin @@ -96,10 +88,9 @@ jobs: needs: [ env, image-manifest ] steps: - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - path: go/src/open-cluster-management.io/addon-framework - name: generate changelog run: | echo "# Addon Framework ${{ needs.env.outputs.RELEASE_VERSION }}" > /home/runner/work/changelog.txt