Skip to content

pre-commit-ansible-autoupdate #251

pre-commit-ansible-autoupdate

pre-commit-ansible-autoupdate #251

name: pre-commit-ansible-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-ansible-autoupdate:
needs: check-secret
if: ${{ needs.check-secret.outputs.set == 'true' }}
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: 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-ansible.yaml
pr-labels: |
bot
pre-commit-ansible-autoupdate
pr-branch: pre-commit-ansible-autoupdate
pr-title: "ci(pre-commit-ansible): autoupdate"
pr-commit-message: "ci(pre-commit-ansible): autoupdate"
auto-merge-method: squash