8000 Readme example contains invalid workflow syntax · Issue #560 · dependabot/fetch-metadata · GitHub
[go: up one dir, main page]

Skip to content

Readme example contains invalid workflow syntax #560

@CloudNStoyan

Description

@CloudNStoyan

The if conditional inside the README's example should be before steps and not jobs

fetch-metadata/README.md

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0