Skip to content

Commit

Permalink
Cherry-pick #5079 #5080 #5081 #5083 #5085 (#5094)
Browse files Browse the repository at this point in the history
* Add workflow for patch release (#5079)

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: t-kikuc <[email protected]>

* Add user info for cherry-pick (#5080)

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: t-kikuc <[email protected]>

* Add quiet option for cherry-pick (#5081)

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: t-kikuc <[email protected]>

* Add sign off option for git cherry-pick (#5083)

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: t-kikuc <[email protected]>

* add ci rule for release branch (#5085)

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: t-kikuc <[email protected]>

---------

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Co-authored-by: Yoshiki Fujikane <[email protected]>
  • Loading branch information
t-kikuc and ffjlabo authored Jul 29, 2024
1 parent be5d908 commit 6875c92
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
branches:
- master
- 'release-v*'

env:
GO_VERSION: 1.22.4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_tool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches:
- master
- 'release-v*'
paths:
- tool/**

Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/cherry_pick.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: cherry_pick

on:
workflow_dispatch:
inputs:
releaseBranch:
description: 'release branch (e.g. release-v0.48.x)'
required: true
type: string
version:
description: 'release version (e.g. v0.48.1)'
required: true
type: string
jobs:
tool:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: make a cherry-pick PR
run: |
git config user.name "pipecd-bot"
git config user.email "[email protected]"
./hack/cherry-pick.sh -q ${{ inputs.releaseBranch }} $(gh pr list --label cherry-pick --label ${{ inputs.version }} --state merged | awk '{print $1}' | sort | paste -sd ' ' -)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- master
- 'release-v*'

env:
GO_VERSION: 1.22.4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
branches:
- master
- 'release-v*'

env:
GO_VERSION: 1.22.4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_tool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
branches:
- master
- 'release-v*'
paths:
- tool/**

Expand Down
2 changes: 1 addition & 1 deletion hack/cherry-pick.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ echo
# Cherry-pick pull requests
COMMITS=$(join " " "${COMMIT_HASHS[@]}")
echo "+++ Cherry-picking pull requests"
git cherry-pick ${COMMITS}
git cherry-pick -s ${COMMITS}
echo

# Check whether to push commits and create a pull request or not
Expand Down

0 comments on commit 6875c92

Please sign in to comment.