pre-commit-autoupdate #104
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 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 |