File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 88
99permissions :
1010 contents : write
11+ pull-requests : write
1112
1213jobs :
1314 update-krew-manifest :
@@ -32,14 +33,23 @@ jobs:
3233 - name : Update krew manifest
3334 run : ./scripts/update-krew-manifest.sh ${{ steps.get_version.outputs.VERSION }}
3435
35- - name : Commit and push
36+ - name : Create Pull Request
3637 run : |
3738 git config user.name "github-actions[bot]"
3839 git config user.email "github-actions[bot]@users.noreply.github.com"
3940 git add plugins/mft.yaml
4041 if git diff --staged --quiet; then
4142 echo "No changes to commit"
4243 else
44+ BRANCH_NAME="chore/update-krew-manifest-${{ steps.get_version.outputs.VERSION }}"
45+ git checkout -b "$BRANCH_NAME"
4346 git commit -m "chore: update krew manifest for ${{ steps.get_version.outputs.VERSION }}"
44- git push origin main
47+ git push origin "$BRANCH_NAME"
48+ gh pr create \
49+ --title "chore: update krew manifest for ${{ steps.get_version.outputs.VERSION }}" \
50+ --body "This PR updates the krew manifest for version ${{ steps.get_version.outputs.VERSION }}." \
51+ --base main \
52+ --head "$BRANCH_NAME"
4553 fi
54+ env :
55+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments