mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-27 10:33:37 +00:00
d7ca5f2297
Error message:
Error: Unable to process file command 'output' successfully.
Error: Invalid format 'index cd0e971..e9a93b2 100644'
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Pre-commit auto-update
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 18 * * 1-4'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Update dependencies
|
|
run: |
|
|
set -x
|
|
python -m pip install --upgrade pip
|
|
pip install pre-commit
|
|
pre-commit autoupdate
|
|
|
|
- name: Gather changes
|
|
id: gather-changes
|
|
run: |
|
|
git diff --color
|
|
changes="$(git diff)"
|
|
delimiter="$(openssl rand -hex 8)"
|
|
echo "changes<<${delimiter}" >> "${GITHUB_OUTPUT}"
|
|
echo "${changes}" >> "${GITHUB_OUTPUT}"
|
|
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
|
|
|
|
- name: Create pull request
|
|
uses: peter-evans/create-pull-request@v5
|
|
with:
|
|
commit-message: Update pre-commit dependencies
|
|
labels: cleanup-no-release-required, dependencies, github_actions
|
|
title: Update pre-commit dependencies
|
|
body: |
|
|
```diff
|
|
${{ steps.gather-changes.outputs.changes }}
|
|
```
|