mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-25 05:10:20 +00:00
fix: correct workflow triggers and writable permissions
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
parent
590e3308d6
commit
c13c60fd5f
3 changed files with 10 additions and 5 deletions
6
.github/workflows/ansible-ci.yml
vendored
6
.github/workflows/ansible-ci.yml
vendored
|
@ -4,9 +4,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- main
|
- main
|
||||||
pull_request_target:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- '!closed'
|
- opened
|
||||||
|
- edited
|
||||||
|
- reopened
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
4
.github/workflows/conventional-label.yml
vendored
4
.github/workflows/conventional-label.yml
vendored
|
@ -2,13 +2,15 @@
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened, edited, synchronize, reopened]
|
types: [opened, edited, synchronize, reopened]
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
name: Auto label pull request
|
name: Auto label pull request
|
||||||
jobs:
|
jobs:
|
||||||
label:
|
label:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "Confirm correct pull request title"
|
- name: "Confirm correct pull request title"
|
||||||
uses: deepakputhraya/action-pr-title@master
|
uses: mmubeen/action-pr-title@master # until PR gets merged https://github.com/deepakputhraya/action-pr-title/pull/29
|
||||||
with:
|
with:
|
||||||
allowed_prefixes: 'feat,feature,fix,major,breaking,minor,enhancement,deprecated,removed,security,bug,bugfix,docs,packaging,test,refactor,refactoring,skip-release,skip_changelog'
|
allowed_prefixes: 'feat,feature,fix,major,breaking,minor,enhancement,deprecated,removed,security,bug,bugfix,docs,packaging,test,refactor,refactoring,skip-release,skip_changelog'
|
||||||
|
|
||||||
|
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -9,9 +9,10 @@ jobs:
|
||||||
release:
|
release:
|
||||||
if: |
|
if: |
|
||||||
github.event.pull_request.merged &&
|
github.event.pull_request.merged &&
|
||||||
github.ref == github.event.repository.default_branch &&
|
|
||||||
!contains(github.event.pull_request.labels.*.name, 'skip_changelog')
|
!contains(github.event.pull_request.labels.*.name, 'skip_changelog')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -30,7 +31,7 @@ jobs:
|
||||||
run: antsibull-changelog release -v --version "${{ steps.version.outputs.next-version }}"
|
run: antsibull-changelog release -v --version "${{ steps.version.outputs.next-version }}"
|
||||||
|
|
||||||
- name: "Run antsichaut"
|
- name: "Run antsichaut"
|
||||||
uses: rndmh3ro/antsichaut-action@main
|
uses: gardar/antsichaut-action@latest # Until new pip release gets published: https://github.com/rndmh3ro/antsichaut/issues/7
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
since_version: "${{ steps.version.outputs.current-version }}"
|
since_version: "${{ steps.version.outputs.current-version }}"
|
||||||
|
|
Loading…
Reference in a new issue