diff --git a/.github/sync-files.yaml b/.github/sync-files.yaml index d3e31ace4..b45dfe0c5 100644 --- a/.github/sync-files.yaml +++ b/.github/sync-files.yaml @@ -1,7 +1,7 @@ -- repository: autowarefoundation/autoware +- repository: autowarefoundation/sync-file-templates + source-dir: sources files: - source: .github/dependabot.yaml - - source: .github/workflows/pre-commit.yaml - source: .github/workflows/pre-commit-optional.yaml - source: .github/workflows/semantic-pull-request.yaml - source: .github/workflows/spell-check-differential.yaml @@ -9,15 +9,10 @@ - source: .clang-format - source: .markdown-link-check.json - source: .markdownlint.yaml + - source: .pre-commit-config.yaml - source: .pre-commit-config-optional.yaml - source: .prettierignore - source: .prettierrc.yaml - source: .yamllint.yaml - source: CPPLINT.cfg - source: setup.cfg - -- repository: autowarefoundation/autoware_common - files: - - source: .github/workflows/build-and-test.yaml - - source: .github/workflows/build-and-test-differential.yaml - - source: .github/workflows/cancel-previous-workflows.yaml diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml deleted file mode 100644 index b231dbda8..000000000 --- a/.github/workflows/pre-commit.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: pre-commit - -on: - pull_request: - -jobs: - pre-commit: - if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories - runs-on: ubuntu-latest - steps: - - name: Generate token - id: generate-token - uses: tibdex/github-app-token@v1 - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.PRIVATE_KEY }} - - - name: Check out repository - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.ref }} - - - name: Run pre-commit - uses: autowarefoundation/autoware-github-actions/pre-commit@v1 - with: - pre-commit-config: .pre-commit-config.yaml - token: ${{ steps.generate-token.outputs.token }}