chore(ghaction): format
Signed-off-by: David Ko <dko@suse.com> Signed-off-by: davidko <dko@suse.com>
This commit is contained in:
parent
d87927ed85
commit
519d087a88
14
.github/workflows/add-to-projects.yml
vendored
14
.github/workflows/add-to-projects.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: Add-To-Projects
|
name: Add-To-Projects
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened, labeled]
|
types: [ opened, labeled ]
|
||||||
jobs:
|
jobs:
|
||||||
community:
|
community:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -14,7 +14,7 @@ jobs:
|
|||||||
organization: longhorn
|
organization: longhorn
|
||||||
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
||||||
- name: Add To Community Project
|
- name: Add To Community Project
|
||||||
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] == null
|
if: steps.is-longhorn-member.outputs.isTeamMember == 'false'
|
||||||
uses: actions/add-to-project@v0.3.0
|
uses: actions/add-to-project@v0.3.0
|
||||||
with:
|
with:
|
||||||
project-url: https://github.com/orgs/longhorn/projects/5
|
project-url: https://github.com/orgs/longhorn/projects/5
|
||||||
@ -23,7 +23,15 @@ jobs:
|
|||||||
qa:
|
qa:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Add To QA & Devops Project
|
- name: Is Longhorn Member
|
||||||
|
uses: tspascoal/get-user-teams-membership@v1.0.4
|
||||||
|
id: is-longhorn-member
|
||||||
|
with:
|
||||||
|
username: ${{ github.event.issue.user.login }}
|
||||||
|
organization: longhorn
|
||||||
|
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
||||||
|
- name: Add To QA & DevOps Project
|
||||||
|
if: steps.is-longhorn-member.outputs.isTeamMember == 'true'
|
||||||
uses: actions/add-to-project@v0.3.0
|
uses: actions/add-to-project@v0.3.0
|
||||||
with:
|
with:
|
||||||
project-url: https://github.com/orgs/longhorn/projects/4
|
project-url: https://github.com/orgs/longhorn/projects/4
|
||||||
|
2
.github/workflows/close-issue.yml
vendored
2
.github/workflows/close-issue.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: Close-Issue
|
name: Close-Issue
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [unlabeled]
|
types: [ unlabeled ]
|
||||||
jobs:
|
jobs:
|
||||||
backport:
|
backport:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user