mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
32bacd1211
Added a token to the sync README dependencies workflow.
40 lines
943 B
YAML
40 lines
943 B
YAML
name: Sync README Dependencies
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- requirements.txt
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Update README dependencies
|
|
run: python scripts/sync_readme_dependencies.py
|
|
|
|
- name: Create pull request
|
|
uses: peter-evans/create-pull-request@v7
|
|
with:
|
|
commit-message: "Sync README dependencies"
|
|
branch: auto/sync-readme-dependencies
|
|
title: "Sync README dependencies"
|
|
body: "Automated update of the Python Dependencies section in README.md to match `requirements.txt`."
|
|
labels: documentation
|
|
token: ${{ secrets.RELEASE_TOKEN }}
|