Skip to content

Commit

Permalink
Update update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
universero authored Aug 8, 2024
1 parent d6349d9 commit 9ba9bf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Fetch Branch
continue-on-error: true
run: git fetch origin ${{ github.event.client_payload.ref }}

- name: Checkout Branch
run: git checkout ${{ github.event.client_payload.ref }} || git checkout -b ${{ github.event.client_payload.ref }}

Expand Down Expand Up @@ -55,7 +59,6 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "${{ github.actor }}"
git pull
git add kitex_gen
git commit -m "${{ github.event.client_payload.commit_msg }}"
git push origin ${{ github.event.client_payload.ref }}

0 comments on commit 9ba9bf1

Please sign in to comment.