Skip to content

Commit

Permalink
Attempt to pass secrets correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
godexsoft committed Jan 15, 2024
1 parent 43ac34d commit 51734e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Clang-tidy check
on:
schedule:
- cron: '0 6 * * 1-5'
- cron: "0 6 * * 1-5"
workflow_dispatch:
pull_request:
branches: [develop]
paths:
- .clang_tidy
- .github/workflows/clang-tidy.yml
workflow_call:
secrets: inherit

jobs:
clang_tidy:
runs-on: [self-hosted, Linux]
Expand All @@ -23,12 +23,12 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0

- name: Prepare runner
uses: ./.github/actions/prepare_runner
with:
disable_ccache: true
disable_ccache: true

- name: Setup conan
uses: ./.github/actions/setup_conan
Expand Down Expand Up @@ -101,14 +101,14 @@ jobs:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
with:
commit-message: '[CI] clang-tidy auto fixes'
commit-message: "[CI] clang-tidy auto fixes"
committer: Clio CI <[email protected]>
branch: 'clang_tidy/autofix'
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.'
reviewers: 'cindyyan317,godexsoft,kuznetsss'
title: "[CI] clang-tidy auto fixes"
body: "Fixes #${{ steps.create_issue.outputs.created_issue }}. Please review and commit clang-tidy fixes."
reviewers: "cindyyan317,godexsoft,kuznetsss"

- name: Fail the job
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/clang-tidy_on_fix_merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ jobs:
on_fix_merge:
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.labels.*.name == '[CI] clang-tidy auto fixes' }}
uses: ./.github/workflows/clang-tidy.yml
secrets: inherit

0 comments on commit 51734e5

Please sign in to comment.