Merge pull request #80 from trueberryless-org/github-activity #164
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: Add tree changes | |
on: | |
push: | |
branches: [main] | |
jobs: | |
commit-tree-changes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate GitHub App token | |
id: generate_token | |
uses: tibdex/[email protected] | |
with: | |
app_id: ${{ secrets.BOT_APP_ID }} | |
private_key: ${{ secrets.BOT_PRIVATE_KEY }} | |
- uses: actions/checkout@v3 | |
- name: Write tree outputs to README.md | |
uses: trueberryless-org/readme-tree-writer-all@v1 | |
with: | |
config_path: .github/readmetreerc.yaml | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
commit-message: "[ci] update tree" | |
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: ci-tree | |
delete-branch: true | |
title: "[ci] update tree" | |
body: "This PR was automatically created to update the project structure tree in every `README.md`." | |
labels: 🤖 bot | |
assignees: trueberryless | |
draft: false |