-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1192 from ty-dc/action/sign-off
add signoff for cherry-pick robot
- Loading branch information
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,13 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- uses: crazy-max/ghaction-import-gpg@v5 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
|
||
# ${{ secrets.GITHUB_TOKEN }} is forbidden to create or approve pull requests | ||
- name: cherry pick | ||
env: | ||
|
@@ -108,7 +115,7 @@ jobs: | |
echo "============ begin to cherry pick ============ " | ||
FINAL_FAILURE=false | ||
git branch | ||
git config user.email "[email protected]" | ||
git config user.email "[email protected]" | ||
git config user.name "robot" | ||
gh label create ${{ env.CHERRYPICK_LABEL }} || true | ||
for BRANCH in $WANT_MERGE_BRANCH_LIST ; do | ||
|
@@ -185,6 +192,7 @@ jobs: | |
if [ "$UPDATE" == "true" ] ; then | ||
echo "succeeded to cherry pick to branch $BRANCH " | ||
# create a pr | ||
git commit -s -S --amend --no-edit | ||
git push origin ${PR_BRANCH}:${PR_BRANCH} -f | ||
gh pr create --title "${PR_TITLE}" \ | ||
--assignee "${PR_AUTHOR},${{ env.DEFAULT_REVIEWER }}" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,12 +131,20 @@ jobs: | |
name: changelog_artifact | ||
path: ${{ env.DEST_DIRECTORY }} | ||
|
||
- uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
|
||
- name: Create Pull Request | ||
id: create_pr | ||
uses: peter-evans/[email protected] | ||
with: | ||
title: "robot update changelog with tag ${{ needs.generate_changelog.outputs.dest_tag }} to branch ${{ env.DEST_BRANCH }} " | ||
commit-message: "robot update changelog from tag ${{ needs.generate_changelog.outputs.begin_tag }} to tag ${{ needs.generate_changelog.outputs.dest_tag }} " | ||
committer: ty-dc <[email protected]> | ||
branch-suffix: timestamp | ||
branch: robot/update_changelog | ||
delete-branch: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,13 +106,21 @@ jobs: | |
helm repo index ./charts --url ${url}/charts | ||
mv ./charts/index.yaml ./index.yaml | ||
- uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
|
||
# Allow auto-merge on general | ||
- name: Create Pull Request | ||
id: create_pr | ||
uses: peter-evans/[email protected] | ||
with: | ||
title: "robot update chart from ${{ needs.package.outputs.REF }} to branch ${{ env.MERGE_BRANCH }} " | ||
commit-message: "robot update chart from ${{ needs.package.outputs.REF }} to branch ${{ env.MERGE_BRANCH }} " | ||
committer: ty-dc <[email protected]> | ||
branch-suffix: timestamp | ||
branch: robot/update_doc | ||
delete-branch: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,13 +162,21 @@ jobs: | |
tar -xzvf site.tar.gz | ||
rm -f site.tar.gz | ||
- uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
|
||
# Allow auto-merge on general | ||
- name: Create Pull Request | ||
id: create_pr | ||
uses: peter-evans/[email protected] | ||
with: | ||
title: "robot update website from ${{ needs.package.outputs.ref }} to branch ${{ env.MERGE_BRANCH }} with tag ${{ needs.package.outputs.doc_tag }}" | ||
commit-message: "robot update website from ${{ needs.package.outputs.ref }} to branch ${{ env.MERGE_BRANCH }} with tag ${{ needs.package.outputs.doc_tag }} " | ||
committer: ty-dc <[email protected]> | ||
branch-suffix: timestamp | ||
branch: robot/update_doc | ||
delete-branch: true | ||
|