-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3eee8f6
commit 39e1b09
Showing
31 changed files
with
317 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
name: cancel-previous-workflows | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
cancel-previous-workflows: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/cancel-workflow-action@0.11.0 | ||
uses: styfle/cancel-workflow-action@0.12.1 | ||
with: | ||
workflow_id: all | ||
all_but_latest: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
name: clang-tidy-pr-comments-manually | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
workflow_run_id_or_url: | ||
description: The target workflow run ID or URL of the build-and-test-differential workflow | ||
required: true | ||
jobs: | ||
clang-tidy-pr-comments-manually: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download analysis results | ||
run: | | ||
workflow_run_id=$(echo "${{ inputs.workflow_run_id_or_url }}" | sed -e "s|.*runs/||" -e "s|/jobs.*||") | ||
gh run download "$workflow_run_id" -D /tmp || true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check if the fixes.yaml file exists | ||
id: check-fixes-yaml-existence | ||
uses: autowarefoundation/autoware-github-actions/check-file-existence@v1 | ||
with: | ||
files: /tmp/clang-tidy-result/fixes.yaml | ||
|
||
- name: Set variables | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
id: set-variables | ||
run: | | ||
echo "pr-id=$(cat /tmp/clang-tidy-result/pr-id.txt)" >> $GITHUB_OUTPUT | ||
echo "pr-head-repo=$(cat /tmp/clang-tidy-result/pr-head-repo.txt)" >> $GITHUB_OUTPUT | ||
echo "pr-head-ref=$(cat /tmp/clang-tidy-result/pr-head-ref.txt)" >> $GITHUB_OUTPUT | ||
- name: Check out PR head | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ steps.set-variables.outputs.pr-head-repo }} | ||
ref: ${{ steps.set-variables.outputs.pr-head-ref }} | ||
persist-credentials: false | ||
|
||
- name: Replace paths in fixes.yaml | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
run: | | ||
sed -i -e "s|/__w/|/home/runner/work/|g" /tmp/clang-tidy-result/fixes.yaml | ||
cat /tmp/clang-tidy-result/fixes.yaml | ||
- name: Copy fixes.yaml to access from Docker Container Action | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
run: | | ||
cp /tmp/clang-tidy-result/fixes.yaml fixes.yaml | ||
- name: Run clang-tidy-pr-comments action | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
uses: platisd/clang-tidy-pr-comments@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
clang_tidy_fixes: fixes.yaml | ||
pull_request_id: ${{ steps.set-variables.outputs.pr-id }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
name: pre-commit-autoupdate | ||
|
||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-secret: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1 | ||
secrets: | ||
secret: ${{ secrets.APP_ID }} | ||
|
||
pre-commit-autoupdate: | ||
needs: check-secret | ||
if: ${{ needs.check-secret.outputs.set == 'true' }} | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Generate token | ||
id: generate-token | ||
uses: tibdex/github-app-token@v2 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.PRIVATE_KEY }} | ||
|
||
- name: Run pre-commit-autoupdate | ||
uses: autowarefoundation/autoware-github-actions/pre-commit-autoupdate@v1 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
pre-commit-config: .pre-commit-config.yaml | ||
pr-labels: | | ||
tag:bot | ||
tag:pre-commit-autoupdate | ||
pr-branch: pre-commit-autoupdate | ||
pr-title: "ci(pre-commit): autoupdate" | ||
pr-commit-message: "ci(pre-commit): autoupdate" | ||
auto-merge-method: squash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
name: spell-check-daily | ||
|
||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
spell-check-daily: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run spell-check | ||
uses: autowarefoundation/autoware-github-actions/spell-check@v1 | ||
with: | ||
local-cspell-json: .cspell.json | ||
incremental-files-only: false | ||
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json | ||
dict-packages: | | ||
https://github.com/autowarefoundation/autoware-spell-check-dict | ||
https://github.com/tier4/cspell-dicts |
Oops, something went wrong.