File: finalize.yml

package info (click to toggle)
python-ansible-compat 25.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 964 kB
  • sloc: python: 2,638; sh: 26; makefile: 24
file content (25 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
name: finalize
on:
  workflow_run:
    workflows:
      - tox
    types:
      - completed

permissions: read-all

jobs:
  finalize:
    if: |
      github.event.workflow_run.conclusion == 'success' &&
      (github.event.workflow_run.event == 'pull_request' ||
       (github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main'))
    uses: ansible/team-devtools/.github/workflows/finalize.yml@main
    with:
      run-id: ${{ github.event.workflow_run.id }}
      workflow-event: ${{ github.event.workflow_run.event }}
      head-sha: ${{ github.event.workflow_run.head_sha }}
      head-branch: ${{ github.event.workflow_run.head_branch }}
      head-repository: ${{ github.event.workflow_run.head_repository.full_name }}
    secrets: inherit