Merge pull request #24 from MohamedElashri/add_generate_test_action
Add generate test action
This commit is contained in:
commit
e6706d18f5
|
|
@ -1,32 +1,21 @@
|
|||
name: Update README
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '_README.md'
|
||||
|
||||
pull_request:
|
||||
branches: ['**']
|
||||
|
||||
jobs:
|
||||
update-readme:
|
||||
if: ${{ github.actor != 'github-actions[bot]' }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Generate README.md
|
||||
run: |
|
||||
python3 generate_readme.py _README.md > README.md
|
||||
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: 'Auto-update README.md [skip ci]'
|
||||
file_pattern: README.md
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
name: Test README Generation
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['**']
|
||||
paths:
|
||||
- '_README.md'
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
test-readme:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Generate README.md (Test Only)
|
||||
run: |
|
||||
python3 generate_readme.py _README.md > README.md
|
||||
- name: Show README.md output
|
||||
run: |
|
||||
cat README.md
|
||||
Loading…
Reference in New Issue