Skip to content

chore: Add missing GITHUB_TOKEN permissions (#22) #28

chore: Add missing GITHUB_TOKEN permissions (#22)

chore: Add missing GITHUB_TOKEN permissions (#22) #28

Workflow file for this run

name: release
on:
push:
branches:
- main
permissions:
contents: read
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run release-please
uses: google-github-actions/release-please-action@v3
id: release-please
with:
package-name: ansible-collection-common
release-type: python
pull-request-title-pattern: 'chore${scope}: Release ${component} ${version}'
token: ${{ secrets.GITHUB_TOKEN }}
extra-files: galaxy.yml
release:
if: needs.release-please.outputs.release_created
runs-on: ubuntu-latest
needs: release-please
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish to Ansible Galaxy
uses: ansible/[email protected]
with:
api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}