Skip to content

Workflow updates

Workflow updates #54

name: "Pull Request / Modified: Unvet"
on:
workflow_run:
workflows:
- "Pull Request / Modified"
types:
- completed
permissions:
contents: read
issues: write
pull-requests: write
jobs:
pull-request:
uses: auth0/auth0-PHP/.github/workflows//common.pr-details.get.yml@main

Check failure on line 17 in .github/workflows/common.pull-request.modified.unvet.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/common.pull-request.modified.unvet.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
with:
number: ${{ github.event.number }}
sha: ${{ github.sha }}
check:
needs: pull-request
name: "Maintainer Approval"
runs-on: ubuntu-latest
steps:
# Dependabot. Success.
- if: ${{ github.actor == 'dependabot[bot]' }}
run: exit 0
- if: ${{ ! contains(github.event.pull_request.labels.*.name, 'Vetted') }}
run: exit 0
- uses: actions/checkout@v3
- id: get-pr-details
uses: auth0/auth0-PHP/.github/workflows//common.pr-details.get.yml@main
# Doesn't have 'Vetted' label. Success.
- uses: actions/github-script@v6
with:
script: |
let number = ${{ needs.pull-request.outputs.number }};
github.rest.issues.removeLabel({
issue_number: number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ["Vetted"]
})