Skip to content

Commit

Permalink
Add README generation
Browse files Browse the repository at this point in the history
  • Loading branch information
frasdav committed Jan 4, 2024
1 parent cb41dee commit 9cb05b7
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/generate-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0

- name: Configure git
run: |
git config --global url."https://x-oauth-basic:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository_owner }}".insteadOf https://github.com/${{ github.repository_owner }}
# fetch-depth: 0

- id: get_python_version
name: Get Python version
Expand Down Expand Up @@ -48,21 +44,13 @@ jobs:

- name: Generate README
run: |
echo ${GITHUB_REF##*/}
git branch main remotes/origin/main
git tag --merged main
pipenv run python scripts/generate_readme.py main
# make generate_readme branch=${GITHUB_REF##*/}
set -euo pipefail
# - name: Commit and push README
# run: |
# set -euo pipefail
git branch main remotes/origin/main
make generate_readme branch=main
# git checkout -B bot/update-readme
# git add "${{ github.workspace }}/README.rst"
# git commit -m "Update README [skip ci]"
# git push --force-with-lease
# - name: Generate README
# run: make generate_readme branch=${GITHUB_REF##*/}

- name: Commit, push and create pull request
uses: peter-evans/create-pull-request@v5
Expand Down

0 comments on commit 9cb05b7

Please sign in to comment.