mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 03:43:09 +00:00
Merge pull request #32 from gardar/ci/fix-permissions
fix: correct workflow triggers and writable permissions
This commit is contained in:
commit
0c7854ffcb
3 changed files with 9 additions and 4 deletions
6
.github/workflows/ansible-ci.yml
vendored
6
.github/workflows/ansible-ci.yml
vendored
|
@ -4,9 +4,11 @@ on:
|
|||
push:
|
||||
branches-ignore:
|
||||
- main
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
types:
|
||||
- '!closed'
|
||||
- opened
|
||||
- edited
|
||||
- reopened
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
|
|
4
.github/workflows/conventional-label.yml
vendored
4
.github/workflows/conventional-label.yml
vendored
|
@ -2,13 +2,15 @@
|
|||
on:
|
||||
pull_request_target:
|
||||
types: [opened, edited, synchronize, reopened]
|
||||
permissions:
|
||||
pull-requests: write
|
||||
name: Auto label pull request
|
||||
jobs:
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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:
|
||||
allowed_prefixes: 'feat,feature,fix,major,breaking,minor,enhancement,deprecated,removed,security,bug,bugfix,docs,packaging,test,refactor,refactoring,skip-release,skip_changelog'
|
||||
|
||||
|
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
@ -9,9 +9,10 @@ jobs:
|
|||
release:
|
||||
if: |
|
||||
github.event.pull_request.merged &&
|
||||
github.ref == github.event.repository.default_branch &&
|
||||
!contains(github.event.pull_request.labels.*.name, 'skip_changelog')
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue