@@ -48,58 +48,31 @@ jobs:
4848 echo "has_changes=false" >> $GITHUB_OUTPUT
4949 fi
5050
51- - name : Commit and push changes
51+ - name : Create Pull Request
5252 if : steps.check_changes.outputs.has_changes == 'true'
53- run : |
54- git config --local user.email "[email protected] " 55- git config --local user.name "GitHub Action"
56- git checkout -b automated/update-go-deps
57- git add .
58- git commit -m "chore(deps): update Go dependencies"
59- git push origin automated/update-go-deps --force
60-
61- - name : Create Pull Request with GitHub CLI
62- if : steps.check_changes.outputs.has_changes == 'true'
63- env :
64- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65- run : |
66- # Check if PR already exists
67- if gh pr view automated/update-go-deps --json number --jq .number 2>/dev/null; then
68- echo "PR already exists, updating..."
69- gh pr edit automated/update-go-deps \
70- --title "chore(deps): update Go dependencies" \
71- --body "## Automated Go Dependencies Update
72-
73- This PR updates Go module dependencies to their latest versions.
74-
75- ### Changes made:
76- - Updated Go module dependencies via \`make update-go-deps\`
77- - Regenerated manifests via \`make generate manifests\`
78- - Applied formatting and linting fixes via \`make fmt lint-fix\`
79-
80- Please review the changes and ensure all tests pass before merging.
81-
82- ---
83- *Generated by https://github.com/adobe/koperator/blob/master/.github/workflows/update-go-deps.yml*"
84- else
85- echo "Creating new PR..."
86- gh pr create \
87- --title "chore(deps): update Go dependencies" \
88- --body "## Automated Go Dependencies Update
89-
90- This PR updates Go module dependencies to their latest versions.
91-
92- ### Changes made:
93- - Updated Go module dependencies via \`make update-go-deps\`
94- - Regenerated manifests via \`make generate manifests\`
95- - Applied formatting and linting fixes via \`make fmt lint-fix\`
96-
97- Please review the changes and ensure all tests pass before merging.
98-
99- ---
100- *Generated by https://github.com/adobe/koperator/blob/master/.github/workflows/update-go-deps.yml*" \
101- --head automated/update-go-deps \
102- --base master \
103- --label "dependencies,go,automated"
104- fi
53+ uses : peter-evans/create-pull-request@v7
54+ with :
55+ token : ${{ secrets.PAT }}
56+ commit-message : ' chore(deps): update Go dependencies'
57+ title : ' chore(deps): update Go dependencies'
58+ body : |
59+ ## Automated Go Dependencies Update
60+
61+ This PR updates Go module dependencies to their latest versions.
62+
63+ ### Changes made:
64+ - Updated Go module dependencies via `make update-go-deps`
65+ - Regenerated manifests via `make generate manifests`
66+ - Applied formatting and linting fixes via `make fmt lint-fix`
67+
68+ Please review the changes and ensure all tests pass before merging.
69+
70+ ---
71+ *Generated by https://github.com/adobe/koperator/blob/master/.github/workflows/update-go-deps.yml*
72+ branch : automated/update-go-deps
73+ delete-branch : true
74+ labels : |
75+ dependencies
76+ go
77+ automated
10578
0 commit comments