Philipp Horstenkamp 9365d681df
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 31s
Tests for the default value of github actions.
2023-11-19 22:55:53 +01:00

63 lines
1.8 KiB
YAML

name: Auto Maintenance Cycle
on:
schedule:
- cron: '* 1 * * 0'
push:
jobs:
auto-update:
name: pre-commit Autoupdate
runs-on: pi64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- run: pip install pre-commit
shell: bash
- run: pre-commit autoupdate
shell: bash
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: update pre-commit hooks'
branch: update/pre-commit-hooks
push_options: --force
create_branch: true
# - run: |
# curl -X 'POST' \
# 'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
# -H 'accept: application/json' \
# -H 'authorization: Basic auth token' \
# -H 'Content-Type: application/json' \
# -d '{
# "base": "main",
# "body": "string",
# "head": "update/pre-commit-hooks",
# "title": "Some title"
# }'
# - name: Make a curl request
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# curl -X 'POST' \
# 'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
# -H 'accept: application/json' \
# -H "Authorization: token ${GITHUB_TOKEN}" \
# -H 'Content-Type: application/json' \
# -d '{
# "base": "main",
# "body": "string",
# "head": "update/pre-commit-hooks",
# "title": "Some title"
# }'
- name: My PR action
uses: ./
with:
token: ${{ secrets.REPO_TOKEN }}
branch: update/pre-commit-hooks
title: My PR Title
# body: My PR Body
assignees: Philipp
reviewers: Philipp
labels: chore