Skip to content

Update Pre-Commit dependencies #23

Update Pre-Commit dependencies

Update Pre-Commit dependencies #23

name: Pre-Commit update
run-name: "Update Pre-Commit dependencies"
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
schedule:
- cron: 0 1 1 * * # 1am of every 1st day of every month
jobs:
update:
name: "Update Pre-Commit dependencies"
uses: ./.github/workflows/_pre-commit-update.yml
pre-commit:
name: Run Pre-Commit with the udpated config
needs: [update]
if: needs.update.outputs.pr_operation == 'created' || needs.update.outputs.pr_operation == 'updated'
uses: ./.github/workflows/_pre_commit.yml
with:
pre-commit-hooks: checkov
checkout-branch: pre-commit-dependencies-update

Check failure on line 25 in .github/workflows/pre-commit-update.yml

View workflow run for this annotation

GitHub Actions / Pre-Commit update

Invalid workflow file

The workflow is not valid. .github/workflows/pre-commit-update.yml (Line: 25, Col: 24): Invalid input, checkout-branch is not defined in the referenced workflow.
comment-pr:
name: Give comment on the PR if pre-commit failed
needs: [pre-commit, update]
if: always() && (needs.pre-commit.result == 'failure' || needs.pre-commit.result == 'success')
uses: ./.github/workflows/_comment_pr.yml
with:
pr_number: ${{ needs.update.outputs.pr_number }}
job_result: ${{ needs.pre-commit.result }}