Skip to content

Commit

Permalink
Use different token to sign commits (#1041)
Browse files Browse the repository at this point in the history
For #884
  • Loading branch information
kuznetsss authored Dec 13, 2023
1 parent d11d566 commit 1c66398
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
rm output.txt
- name: Create an issue
if: ${{ steps.run_clang_tidy.outcome != 'success' && github.event_name == 'schedule' }}
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
id: create_issue
shell: bash
env:
Expand All @@ -88,20 +88,21 @@ jobs:
git_commit_gpgsign: true

- name: Create PR with fixes
if: ${{ steps.run_clang_tidy.outcome != 'success' && github.event_name == 'schedule' }}
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
uses: peter-evans/create-pull-request@v5
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.SIGN_COMMIT_TOKEN }}
with:
commit-message: '[CI] clang-tidy auto fixes'
commiter: Clio CI <skuznetsov@ripple.com>
branch: 'clang_tidy/autofix'
branch-suffix: timestamp
delete-branch: true
title: '[CI] clang-tidy auto fixes'
body: 'Fixes #${{ steps.create_issue.outputs.created_issue }}. Please review and commit clang-tidy fixes'
body: 'Fixes #${{ steps.create_issue.outputs.created_issue }}. Please review and commit clang-tidy fixes.'
reviewers: 'cindyyan317,godexsoft,kuznetsss'
push-to-fork: 'kuznetsss/clio'

- name: Fail the job
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
Expand Down

0 comments on commit 1c66398

Please sign in to comment.