chore(ghaction): fix invalid member check
Signed-off-by: davidko <dko@suse.com>
This commit is contained in:
parent
519d087a88
commit
1e8bd45c63
4
.github/workflows/add-to-projects.yml
vendored
4
.github/workflows/add-to-projects.yml
vendored
@ -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: steps.is-longhorn-member.outputs.isTeamMember == 'false'
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] == null
|
||||||
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
|
||||||
@ -31,7 +31,7 @@ jobs:
|
|||||||
organization: longhorn
|
organization: longhorn
|
||||||
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
||||||
- name: Add To QA & DevOps Project
|
- name: Add To QA & DevOps Project
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true'
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null
|
||||||
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
|
||||||
|
18
.github/workflows/create-issue.yml
vendored
18
.github/workflows/create-issue.yml
vendored
@ -15,14 +15,14 @@ jobs:
|
|||||||
organization: longhorn
|
organization: longhorn
|
||||||
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
||||||
- name: Get Backport Version
|
- name: Get Backport Version
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true'
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null
|
||||||
uses: xom9ikk/split@v1
|
uses: xom9ikk/split@v1
|
||||||
id: split
|
id: split
|
||||||
with:
|
with:
|
||||||
string: ${{ github.event.label.name }}
|
string: ${{ github.event.label.name }}
|
||||||
separator: /
|
separator: /
|
||||||
- name: Check if Backport Issue Exists
|
- name: Check if Backport Issue Exists
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true'
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3
|
||||||
id: if-backport-issue-exists
|
id: if-backport-issue-exists
|
||||||
with:
|
with:
|
||||||
@ -32,7 +32,7 @@ jobs:
|
|||||||
title-includes: |
|
title-includes: |
|
||||||
[BACKPORT][v${{ steps.split.outputs._1 }}]${{ github.event.issue.title }}
|
[BACKPORT][v${{ steps.split.outputs._1 }}]${{ github.event.issue.title }}
|
||||||
- name: Get Milestone Object
|
- name: Get Milestone Object
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true' && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
||||||
uses: longhorn/bot/milestone-action@master
|
uses: longhorn/bot/milestone-action@master
|
||||||
id: milestone
|
id: milestone
|
||||||
with:
|
with:
|
||||||
@ -40,7 +40,7 @@ jobs:
|
|||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
milestone_name: v${{ steps.split.outputs._1 }}
|
milestone_name: v${{ steps.split.outputs._1 }}
|
||||||
- name: Get Labels
|
- name: Get Labels
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true' && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
||||||
id: labels
|
id: labels
|
||||||
run: |
|
run: |
|
||||||
RAW_LABELS="${{ join(github.event.issue.labels.*.name, ' ') }}"
|
RAW_LABELS="${{ join(github.event.issue.labels.*.name, ' ') }}"
|
||||||
@ -50,7 +50,7 @@ jobs:
|
|||||||
echo "LABELS: $LABELS"
|
echo "LABELS: $LABELS"
|
||||||
echo "::set-output name=labels::$LABELS"
|
echo "::set-output name=labels::$LABELS"
|
||||||
- name: Create Backport Issue
|
- name: Create Backport Issue
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true' && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
||||||
uses: dacbd/create-issue-action@v1
|
uses: dacbd/create-issue-action@v1
|
||||||
id: new-issue
|
id: new-issue
|
||||||
with:
|
with:
|
||||||
@ -63,7 +63,7 @@ jobs:
|
|||||||
milestone: ${{ fromJSON(steps.milestone.outputs.data).number }}
|
milestone: ${{ fromJSON(steps.milestone.outputs.data).number }}
|
||||||
assignees: ${{ join(github.event.issue.assignees.*.login, ', ') }}
|
assignees: ${{ join(github.event.issue.assignees.*.login, ', ') }}
|
||||||
- name: Get Repo Id
|
- name: Get Repo Id
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true' && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
||||||
uses: octokit/request-action@v2.x
|
uses: octokit/request-action@v2.x
|
||||||
id: repo
|
id: repo
|
||||||
with:
|
with:
|
||||||
@ -71,7 +71,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
- name: Add Backport Issue To Release
|
- name: Add Backport Issue To Release
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true' && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null && fromJSON(steps.if-backport-issue-exists.outputs.issues)[0] == null
|
||||||
uses: longhorn/bot/add-zenhub-release-action@master
|
uses: longhorn/bot/add-zenhub-release-action@master
|
||||||
with:
|
with:
|
||||||
zenhub_token: ${{ secrets.ZENHUB_TOKEN }}
|
zenhub_token: ${{ secrets.ZENHUB_TOKEN }}
|
||||||
@ -91,7 +91,7 @@ jobs:
|
|||||||
organization: longhorn
|
organization: longhorn
|
||||||
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
||||||
- name: Check if Automation Issue Exists
|
- name: Check if Automation Issue Exists
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true'
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3
|
||||||
id: if-automation-issue-exists
|
id: if-automation-issue-exists
|
||||||
with:
|
with:
|
||||||
@ -101,7 +101,7 @@ jobs:
|
|||||||
title-includes: |
|
title-includes: |
|
||||||
[TEST]${{ github.event.issue.title }}
|
[TEST]${{ github.event.issue.title }}
|
||||||
- name: Create Automation Test Issue
|
- name: Create Automation Test Issue
|
||||||
if: steps.is-longhorn-member.outputs.isTeamMember == 'true' && fromJSON(steps.if-automation-issue-exists.outputs.issues)[0] == null
|
if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] != null && fromJSON(steps.if-automation-issue-exists.outputs.issues)[0] == null
|
||||||
uses: dacbd/create-issue-action@v1
|
uses: dacbd/create-issue-action@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
|
Loading…
Reference in New Issue
Block a user