-
-
Notifications
You must be signed in to change notification settings - Fork 33
52 lines (47 loc) · 1.83 KB
/
dynamic-readme.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Dynamic README reusable workflow
env:
VS_WORKFLOW_TYPE: "dynamic-readme"
on:
workflow_call:
secrets:
token:
required: true
jobs:
update_templates:
name: "Update Templates"
runs-on: ubuntu-latest
steps:
- name: "📥 Fetching Repository Contents"
uses: actions/checkout@main
- name: "💾 Github Repository Metadata"
uses: varunsridharan/action-repository-meta@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "💫 Dynamic Template Render"
uses: varunsridharan/action-dynamic-readme@main
with:
GLOBAL_TEMPLATE_REPOSITORY: thoughtbot/templates
files: |
README.md
committer_name: github-actions[bot]
committer_email: github-actions[bot]@users.noreply.github.com
commit_message: "docs: update readme file with markdown templates [skip ci]"
confirm_and_push: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create pull request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "docs: documentation files updated"
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
signoff: false
branch: github-actions/repository-maintenance-${{ github.sha }}
delete-branch: true
title: "Automatically Generated: Update Dynamic Section in README"
body: |
This PR was automatically generated to update the dynamic section in the README file.
Whenever the README is updated, this workflow is triggered to dynamically render the snippet
used in the README.