Update readme count #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Update readme count' | |
permissions: | |
contents: write # Permission to create commits | |
checks: write # Permission to trigger checks | |
pull-requests: write | |
on: workflow_dispatch | |
jobs: | |
createPullRequest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
cp config.example.py config.py | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Get combination count | |
id: get-count | |
run: echo "count=$(python gen.py -c)" >> $GITHUB_OUTPUT | |
- name: Update readme | |
run: | |
python update_readme_count.py "${{ steps.get-count.outputs.count }}" | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: Update combination count | |
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: update-combination-count | |
delete-branch: true | |
title: 'Update combination count' | |
body: | | |
Update combination count in README | |
labels: | | |
automated pr | |
draft: false |