-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.34 KB
/
auto-generated.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This is a basic workflow to help you get started with Actions
name: 🔨 Auto Generating Tasks
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
paths:
- 'Benchmark/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: commit-work
cancel-in-progress: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
linking:
runs-on: ubuntu-latest
name: Markdown files
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: 📦 Checkout Repository
uses: actions/checkout@v4
# Runs a single command using the runners shell
- name: 📓 Create Readmes
uses: DaanV2/Markdown-Action-Create-Indexes@v2.0.0
with:
folder: ${{github.workspace}}/Benchmark
filename: README.md
- name: 📖 Commit changes
continue-on-error: true
run: |
cd $GITHUB_WORKSPACE
git config --global user.email "actions@github.com"
git config --global user.name "github"
git add .
git commit -m "auto: Generated Readmes" || echo "No changes to commit"
- name: 🚚 Push
continue-on-error: true
run: git push