Skip to content

Update update-directorymd.yml (#6326) #5

Update update-directorymd.yml (#6326)

Update update-directorymd.yml (#6326) #5

name: Generate Directory Markdown
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: write
pull-requests: write
workflows: write

Check failure on line 11 in .github/workflows/update-directorymd.yml

View workflow run for this annotation

GitHub Actions / Generate Directory Markdown

Invalid workflow file

The workflow is not valid. .github/workflows/update-directorymd.yml (Line: 11, Col: 3): Unexpected value 'workflows'
jobs:
generate-directory:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Run Directory Tree Generator
uses: DenizAltunkapan/directory-tree-generator@v2
with:
path: src
extensions: .java
show-extensions: false
- name: Commit changes
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
git add DIRECTORY.md
git diff --cached --quiet || git commit -m "Update DIRECTORY.md"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
branch: update-directory
base: master
title: "Update DIRECTORY.md"
body: "Automatically generated update of the directory tree."
commit-message: "Update DIRECTORY.md"
draft: false