-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 925 Bytes
/
organize-readme.yml
File metadata and controls
33 lines (26 loc) · 925 Bytes
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: organize-repos-readme
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
org-readme:
name: Create README of repos within CGDS
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Note that we explicitly specify the head commit in the checkout Action. This is required in order to work
# with the pull_request event (or any other non-push event).
with:
ref: ${{ github.head_ref }}
- name: Generate README
run: bash .github/generate_readme.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply updated repo organization