-
Notifications
You must be signed in to change notification settings - Fork 116
Readme example contains invalid workflow syntax #560
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The if conditional inside the README's example should be before steps and not jobs
Lines 19 to 37 in b0d0393
| ```yaml | |
| -- .github/workflows/dependabot-prs.yml | |
| name: Dependabot Pull Request | |
| on: pull_request | |
| if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'owner/my_repo' | |
| jobs: | |
| build: | |
| permissions: | |
| pull-requests: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fetch Dependabot metadata | |
| id: dependabot-metadata | |
| uses: dependabot/fetch-metadata@v2 | |
| with: | |
| alert-lookup: true | |
| compat-lookup: true | |
| github-token: "${{ secrets.PAT_TOKEN }}" | |
| ``` |
Currently this is not valid workflow syntax as far as I can tell :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working