.github: Rework for merge approval

This commit is contained in:
George Joseph
2023-06-06 06:08:34 -06:00
parent fe15631d38
commit b3c2a9cd44
4 changed files with 206 additions and 63 deletions

View File

@@ -5,10 +5,6 @@ on:
pull_request_target:
types: [opened, reopened, synchronize]
#concurrency:
# group: ${{github.workflow}}-${{github.event.number}}
# cancel-in-progress: true
env:
ASTERISK_REPO: ${{github.repository}}
PR_NUMBER: ${{github.event.number}}
@@ -19,7 +15,7 @@ env:
jobs:
AsteriskUnitTests:
PROpenUpdateUnitTests:
runs-on: ubuntu-latest
steps:
- name: Get Token needed to add reviewers
@@ -93,8 +89,8 @@ jobs:
--add-label ${{vars.TEST_CHECKS_PASSED_LABEL}} \
${{env.PR_NUMBER}} || :
AsteriskGate:
needs: AsteriskUnitTests
PROpenUpdateGateTestMatrix:
needs: PROpenUpdateUnitTests
continue-on-error: false
strategy:
fail-fast: false
@@ -117,19 +113,18 @@ jobs:
gatetest_commands: ${{vars.GATETEST_COMMANDS}}
AsteriskGateTests:
name: AsteriskGateTests
PROpenUpdateGateTests:
if: always()
runs-on: ubuntu-latest
needs: AsteriskGate
needs: PROpenUpdateGateTestMatrix
steps:
- name: Check test matrix status
env:
RESULT: ${{ needs.AsteriskGate.result }}
RESULT: ${{ needs.PROpenUpdateGateTestMatrix.result }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "all results: ${{ toJSON(needs.*.result) }}"
echo "composite result: ${{ needs.AsteriskGate.result }}"
echo "composite result: $RESULT"
gh pr edit --repo ${{github.repository}} \
--remove-label ${{vars.TESTING_IN_PROGRESS}} \