generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.23 KB
/
fixit-component-list.yml
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
name: Generate hugo-fixit component list
on:
schedule: # Run workflow automatically
- cron: '0 0 * * *' # Runs every day at 00:00 UTC
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the GitHub Actions Workflow page directly
permissions:
contents: write # To write the generated contents to the readme
jobs:
generate-component-list:
name: Update this repo's README with the list of hugo-fixit theme components
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate hugo-fixit component list
id: test-action
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
comment_tag_name: FIXIT_COMPONENTS
template:
"- [{$repo.name}]({$repo.html_url})\\\n {$repo.description}"
# - name: Print Output
# id: output
# run: echo "${{ steps.test-action.outputs.repos }}"
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Docs: update hugo-fixit component list'
commit_author:
'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'