delete(docs) remove infraestructura index duplicates #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate Requirements Indices (ISO 29148) | |
| on: | |
| push: | |
| paths: | |
| - 'implementacion/**/requisitos/**/*.md' | |
| - 'scripts/requisitos/generate_requirements_index.py' | |
| pull_request: | |
| paths: | |
| - 'implementacion/**/requisitos/**/*.md' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| generate-indices: | |
| name: Generate ISO 29148 Indices | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Generate requirements indices | |
| run: | | |
| echo "Generating ISO 29148 indices..." | |
| python3 scripts/requisitos/generate_requirements_index.py | |
| - name: Check for changes | |
| id: check_changes | |
| run: | | |
| if git diff --quiet docs/requisitos/; then | |
| echo "changed=false" >> $GITHUB_OUTPUT | |
| else | |
| echo "changed=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Commit generated indices | |
| if: steps.check_changes.outputs.changed == 'true' && github.event_name == 'push' | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add docs/requisitos/ | |
| git commit -m "chore(requisitos): regenerar indices ISO 29148 [skip ci]" | |
| git push | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload indices artifact | |
| if: steps.check_changes.outputs.changed == 'true' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: requirements-indices | |
| path: docs/requisitos/ | |
| retention-days: 30 | |
| - name: Summary | |
| run: | | |
| echo "## Requirements Indices Generated" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "ISO/IEC/IEEE 29148:2018 compliant indices:" >> $GITHUB_STEP_SUMMARY | |
| echo "- BRS (Business Requirements Specification)" >> $GITHUB_STEP_SUMMARY | |
| echo "- StRS (Stakeholder Requirements Specification)" >> $GITHUB_STEP_SUMMARY | |
| echo "- SRS (Software Requirements Specification)" >> $GITHUB_STEP_SUMMARY | |
| echo "- RTM (Requirements Traceability Matrix)" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "Location: docs/requisitos/" >> $GITHUB_STEP_SUMMARY |