Skip to content

Give permission to update releases #941

Give permission to update releases

Give permission to update releases #941

Workflow file for this run

---
name: tox
on:
push:
branches:
- "main"
- "releases/**"
- "stable/**"
pull_request:
branches:
- "main"
pull_request_target:
types: [opened, labeled, unlabeled] # for ack job
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions: # needed for tox.yml workflow
checks: read
contents: write # needed to update release
id-token: write
packages: write
pull-requests: write
jobs:
ack:
# checks pull-request labels and updates the release notes on pushes
if: github.event_name == 'pull_request_target' || github.event_name == 'push'
uses: ansible/team-devtools/.github/workflows/push.yml@main
tox:
if: github.event_name != 'pull_request_target'
uses: ansible/team-devtools/.github/workflows/tox.yml@main
with:
jobs_producing_coverage: 6
other_names: |
docs
lint
pkg