mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 05:57:21 -05:00
Disable auto-approve-tests workflow (auto pass)
This commit is contained in:
52
.github/workflows/auto-approve-tests.yml
vendored
52
.github/workflows/auto-approve-tests.yml
vendored
@@ -1,50 +1,8 @@
|
||||
name: Auto-Approve Tests
|
||||
|
||||
name: Disabled Workflow
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, labeled]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
auto-approve:
|
||||
disable:
|
||||
if: false
|
||||
runs-on: ubuntu-latest
|
||||
if: |
|
||||
contains(github.event.pull_request.labels.*.name, 'tests-only') &&
|
||||
!contains(github.event.pull_request.labels.*.name, 'breaking-change') &&
|
||||
!contains(github.event.pull_request.labels.*.name, 'do-not-merge')
|
||||
|
||||
steps:
|
||||
- name: Wait for tests to pass
|
||||
uses: lewagon/wait-on-check-action@v1.3.1
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
running-workflow-name: 'auto-approve'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
wait-interval: 30
|
||||
|
||||
- name: Approve PR
|
||||
uses: hmarr/auto-approve-action@v3
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Add auto-merge label
|
||||
run: gh pr edit ${{ github.event.pull_request.number }} --add-label "auto-merge"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Comment on PR
|
||||
run: |
|
||||
gh pr comment ${{ github.event.pull_request.number }} --body "🤖 **Auto-Approved (Tests-Only)**
|
||||
|
||||
This PR contains only test changes and all tests have passed.
|
||||
|
||||
**Tier**: 2 (Tests-Only)
|
||||
**Policy**: AUTO_MERGE_POLICY.md#tier-2-tests
|
||||
**Soak Time**: 0 minutes
|
||||
|
||||
Auto-merge will proceed immediately."
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps: []
|
||||
|
||||
Reference in New Issue
Block a user