mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 05:21:09 +00:00
ac29f70755
* fix(action): correct indentation for types key * updating DIRECTORY.md * refactor: add quotes around name key Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
22 lines
683 B
YAML
22 lines
683 B
YAML
# https://docs.github.com/en/rest/reference/actions#approve-a-workflow-run-for-a-fork-pull-request
|
|
|
|
name: "Approve Workflow Run"
|
|
|
|
on:
|
|
workflow_run:
|
|
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"
|