@@ -19,34 +19,46 @@ jobs:
1919 steps :
2020 - name : Check out code into the Go module directory
2121 uses : actions/checkout@v5
22- with :
23- fetch-depth : 0
24- ref : ${{ github.event.inputs.mize_tag }}
22+ - name : Create a branch for the release
23+ run : |
24+ git config --global user.name 'github-actions'
25+ git config --global user.email '[email protected] ' 26+ git config --global push.default current
27+
28+ go tool gorepomod prerelease "${{ github.events.inputs.kustomize_tag }}"
29+
2530 - name : Set up Go 1.x
2631 uses : actions/setup-go@v6
2732 with :
2833 go-version-file : go.work
2934 id : go
35+
3036 - name : Release kyaml
3137 run : |
3238 make IS_LOCAL=true verify-kustomize-repo
3339 go tool gorepomod release kyaml ${{ github.event.inputs.libs_tag }} --doIt
3440 ./releasing/create-release.sh kyaml/${{ github.event.inputs.libs_tag }}
3541 go tool gorepomod pin kyaml --doIt
42+ git commit -m "Update kyaml to ${{ github.events.inputs.libs_tag }}"
43+ git push --force
3644
3745 - name : Release cmd/config
3846 run : |
3947 make IS_LOCAL=true verify-kustomize-repo
4048 go tool gorepomod release cmd/config ${{ github.event.inputs.libs_tag }} --doIt
4149 ./releasing/create-release.sh cmd/config/${{ github.event.inputs.libs_tag }}
4250 go tool gorepomod pin cmd/config --doIt
51+ git commit -m "Update cmd/config to ${{ github.events.inputs.libs_tag }}"
52+ git push --force
4353
4454 - name : Release api
4555 run : |
4656 make IS_LOCAL=true verify-kustomize-repo
4757 go tool gorepomod release api ${{ github.event.inputs.libs_tag }} --doIt
4858 ./releasing/create-release.sh api/${{ github.event.inputs.libs_tag }}
4959 go tool gorepomod pin api --doIt
60+ git commit -m "Update api to ${{ github.events.inputs.libs_tag }}"
61+ git push --force
5062
5163 - name : Release kustomize
5264 run : |
5870 run : |
5971 git switch master
6072 git pull origin master
61- git config --global user.name 'github-actions'
62- git config --global user.email '[email protected] ' 6373 sed -i "" "s/LATEST_RELEASE=.*/LATEST_RELEASE=${{ github.event.inputs.kustomize_tag }}/" Makefile
6474 source ./releasing/helpers.sh
6575 createBranch bumpMakefile "Update LATEST_RELEASE to ${{ github.event.inputs.kustomize_tag }}"
0 commit comments