Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Aug 11, 2023
1 parent bd6dbc1 commit 921c31a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/common.pull-request.modified.unvet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,18 @@ permissions:
pull-requests: write

jobs:
pull-request:
uses: auth0/auth0-PHP/.github/workflows//common.pr-details.get.yml@main
with:
number: ${{ github.event.number }}
sha: ${{ github.sha }}

outputs:
number: ${{ steps.step1.outputs.test }}

check:
needs: pull-request

name: "Maintainer Approval"
runs-on: ubuntu-latest

Expand All @@ -34,7 +45,7 @@ jobs:
- uses: actions/github-script@v6
with:
script: |
let number = ${{ steps.get-pr-details.outputs.number }};
let number = ${{ needs.pull-request.outputs.number }};
github.rest.issues.removeLabel({
issue_number: number,
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/common.pull-request.modified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@ on:
permissions: {}

jobs:
pull-request:
- uses: auth0/auth0-PHP/.github/workflows//common.pr-details.save.yml@main
with:
number: ${{ github.event.number }}
sha: ${{ github.sha }}

check:
needs: pull-request

name: "Maintainer Approval"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: auth0/auth0-PHP/.github/workflows//common.pr-details.save.yml@main
with:
number: ${{ github.event.number }}
sha: ${{ github.sha }}

- run: exit 0

0 comments on commit 921c31a

Please sign in to comment.