Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump golang.org/x/crypto from 0.12.0 to 0.27.0 #2395

Closed
30 changes: 14 additions & 16 deletions .github/workflows/sync-feature-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
jobs:
sync-feature:
runs-on: ubuntu-latest

steps:
- name: Check if PR has merged
id: check_pr
Expand All @@ -31,29 +30,28 @@ jobs:
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }}
uses: actions/checkout@v3
with:
ref: feature
ref: feature-gitops
path: feature-branch

- name: Remove old feature directory
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }}
run: rm -rf feature

- name: Sync feature branch to master/feature directory
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }}
run: |
mkdir -p feature
rm -rf feature && mkdir -p feature
rm -rf feature-branch/vendor
cp -r feature-branch/* feature/
git config --global user.name 'ks-ci-bot'
git config --global user.email '[email protected]'
git add feature/
git commit -m "Sync feature branch to master/feature directory"
rm -rf feature-branch

- name: Push changes and create PR
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }}
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Sync feature branch to master/feature directory
commit-message: 'Sync feature branch to master/feature directory'
delete-branch: true
branch: sync-feature-to-main
title: [ci-bot] Sync feature branch to master/feature directory
body: This PR syncs the feature branch to the master/feature directory.
sign-commits: true
title: '[ci-bot] Sync feature branch to master/feature directory'
body: |
This PR syncs the feature branch to the master/feature directory.
```release-note
none
```
Loading
Loading