File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PR dependabot code generation and go modules fix
2
+
3
+ # This action runs on other PRs opened by dependabot. It updates modules and generated code on PRs opened by dependabot.
4
+ on :
5
+ pull_request :
6
+ branches :
7
+ - dependabot/**
8
+ push :
9
+ branches :
10
+ - dependabot/**
11
+ workflow_dispatch :
12
+
13
+ permissions :
14
+ contents : write # Allow to update the PR.
15
+
16
+ jobs :
17
+ build :
18
+ name : Build
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - name : Check out code into the Go module directory
22
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
23
+ - name : Calculate go version
24
+ id : vars
25
+ run : echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
26
+ - name : Set up Go
27
+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # tag=v5.0.0
28
+ with :
29
+ go-version : ${{ steps.vars.outputs.go_version }}
30
+ - uses : actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # tag=v4.0.1
31
+ name : Restore go cache
32
+ with :
33
+ path : |
34
+ ~/.cache/go-build
35
+ ~/go/pkg/mod
36
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
37
+ restore-keys : |
38
+ ${{ runner.os }}-go-
39
+ - name : Update all modules
40
+ run : make modules
41
+ - name : Update generated code
42
+ run : make generate
43
+ - uses : EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # tag=v9.1.4
44
+ name : Commit changes
45
+ with :
46
+ author_name : dependabot[bot]
47
+ author_email : 49699333+dependabot[bot]@users.noreply.github.com
48
+ default_author : github_actor
49
+ message : ' Update generated code'
Original file line number Diff line number Diff line change @@ -548,3 +548,6 @@ test-e2e-run: $(GINKGO) $(ENVSUBST) $(HELM) ## Run e2e tests
548
548
-e2e.config=" $( E2E_CONF_FILE_ENVSUBST) " -e2e.components=$(RELEASE_DIR ) /operator-components.yaml \
549
549
-e2e.skip-resource-cleanup=$(SKIP_CLEANUP ) -e2e.use-existing-cluster=$(SKIP_CREATE_MGMT_CLUSTER ) \
550
550
-e2e.helm-binary-path=$(HELM ) -e2e.chart-path=$(CHART_PACKAGE_DIR ) /cluster-api-operator-$(HELM_CHART_TAG ) .tgz $(E2E_ARGS )
551
+
552
+ go-version : # # Print the go version we use to compile our binaries and images
553
+ @echo $(GO_VERSION )
You can’t perform that action at this time.
0 commit comments