mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
fix(action): delete approve workflow as it does not work (#4453)
This commit is contained in:
parent
977511b3a3
commit
daeb6a7e08
22
.github/workflows/approve_workflow_run.yml
vendored
22
.github/workflows/approve_workflow_run.yml
vendored
@ -1,22 +0,0 @@
|
||||
# https://docs.github.com/en/rest/reference/actions#approve-a-workflow-run-for-a-fork-pull-request
|
||||
|
||||
name: "Approve Workflow Run"
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['build', 'project_euler', 'pre-commit', 'directory_writer']
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
approve:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'action_required' }}
|
||||
steps:
|
||||
- name: "Automatically approve a workflow run"
|
||||
run: |
|
||||
curl \
|
||||
--request POST \
|
||||
--header "Accept: application/vnd.github.v3+json" \
|
||||
--header "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||
--url "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}/approve"
|
Loading…
Reference in New Issue
Block a user