Skip to content

Commit

Permalink
Update dynamic README template (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanni Brasil committed Mar 13, 2024
1 parent 3c0a048 commit f7fedf2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 51 deletions.
51 changes: 0 additions & 51 deletions .github/shared-workflows/dynamic-readme.yaml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/dynamic-readme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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]'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f7fedf2

Please sign in to comment.