ci: do conditional in blocked/need-repro workflows at job level (#38186)
This commit is contained in:
parent
88710612a3
commit
3a7cfe300a
2 changed files with 6 additions and 4 deletions
5
.github/workflows/issue-commented.yml
vendored
5
.github/workflows/issue-commented.yml
vendored
|
@ -10,12 +10,13 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
issue-commented:
|
issue-commented:
|
||||||
|
name: Remove blocked/need-repro on comment
|
||||||
|
if: ${{ contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }}
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Remove blocked/need-repro on comment
|
- name: Remove label
|
||||||
if: ${{ contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }}
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
ISSUE_URL: ${{ github.event.issue.html_url }}
|
ISSUE_URL: ${{ github.event.issue.html_url }}
|
||||||
|
|
5
.github/workflows/issue-labeled.yml
vendored
5
.github/workflows/issue-labeled.yml
vendored
|
@ -9,12 +9,13 @@ permissions: # added using https://github.com/step-security/secure-workflows
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
issue-labeled:
|
issue-labeled:
|
||||||
|
name: blocked/need-repro label added
|
||||||
|
if: github.event.label.name == 'blocked/need-repro'
|
||||||
permissions:
|
permissions:
|
||||||
issues: write # for actions-cool/issues-helper to update issues
|
issues: write # for actions-cool/issues-helper to update issues
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: blocked/need-repro label added
|
- name: Create comment
|
||||||
if: github.event.label.name == 'blocked/need-repro'
|
|
||||||
uses: actions-cool/issues-helper@dad28fdb88da5f082c04659b7373d85790f9b135 # v3.3.0
|
uses: actions-cool/issues-helper@dad28fdb88da5f082c04659b7373d85790f9b135 # v3.3.0
|
||||||
with:
|
with:
|
||||||
actions: 'create-comment'
|
actions: 'create-comment'
|
||||||
|
|
Loading…
Reference in a new issue