@@ -23,18 +23,18 @@ jobs:
2323 id : get-target-version
2424 run : |
2525 set -ue
26- CURRENT_VERSION=$(grep 'module github.com/argoproj/${{ github.repository }} go.mod | awk '{print $2}' | sed 's/.*\/v//')
26+ CURRENT_VERSION=$(grep 'module github.com/argoproj/${{ github.event. repository.name }} go.mod | awk '{print $2}' | sed 's/.*\/v//')
2727 echo "TARGET_VERSION=$((CURRENT_VERSION + 1))" >> $GITHUB_OUTPUT
2828
2929 - name : Copy source code to GOPATH
3030 run : |
3131 mkdir -p ~/go/src/github.com/argoproj
32- cp -a ../${{ github.repository }} ~/go/src/github.com/argoproj
32+ cp -a ../${{ github.event. repository.name }} ~/go/src/github.com/argoproj
3333
3434 - name : Run script to bump the version
3535 run : |
3636 hack/bump-major-version.sh
37- working-directory : /home/runner/go/src/github.com/argoproj/${{ github.repository }}
37+ working-directory : /home/runner/go/src/github.com/argoproj/${{ github.event. repository.name }}
3838
3939 - name : Setup Golang
4040 uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
@@ -51,12 +51,12 @@ jobs:
5151 # We need to vendor go modules for codegen yet
5252 go mod download
5353 go mod vendor -v
54- working-directory : /home/runner/go/src/github.com/argoproj/${{ github.repository }}
54+ working-directory : /home/runner/go/src/github.com/argoproj/${{ github.event. repository.name }}
5555 - name : Install toolchain for codegen
5656 run : |
5757 make install-codegen-tools-local
5858 make install-go-tools-local
59- working-directory : /home/runner/go/src/github.com/argoproj/${{ github.repository }}
59+ working-directory : /home/runner/go/src/github.com/argoproj/${{ github.event. repository.name }}
6060 # We install kustomize in the dist directory
6161 - name : Add dist to PATH
6262 run : |
@@ -66,12 +66,12 @@ jobs:
6666 set -x
6767 export GOPATH=$(go env GOPATH)
6868 make codegen-local
69- working-directory : /home/runner/go/src/github.com/argoproj/${{ github.repository }}
69+ working-directory : /home/runner/go/src/github.com/argoproj/${{ github.event. repository.name }}
7070
7171 - name : Copy changes back
7272 run : |
7373 # Copy the contents back, but skip the .git directory
74- rsync -a --exclude=.git /home/runner/go/src/github.com/argoproj/${{ github.repository }}/ ../${{ github.repository }}
74+ rsync -a --exclude=.git /home/runner/go/src/github.com/argoproj/${{ github.event. repository.name }}/ ../${{ github.event. repository.name }}
7575
7676 - name : Create pull request
7777 uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
0 commit comments