Skip to content

Commit

Permalink
avoid annotation error
Browse files Browse the repository at this point in the history
  • Loading branch information
mickahell committed Sep 24, 2023
1 parent 9b0fcf9 commit 3390f1d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ecosystem-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ jobs:
continue-on-error: true
uses: actions/github-script@v6
if: ${{ steps.check-return.outputs.PASS_STD == 'True' }}
env:
PR_LABEL_LIST: ${{ github.event.pull_request.labels.*.name }}
with:
script: |
// PR
Expand All @@ -171,7 +169,7 @@ jobs:
repo: context.repo.repo,
labels: ["ready"]
})
if (${{ env.PR_LABEL_LIST }}.includes("on hold")) {
if (${{ github.event.pull_request.labels.*.name }}.includes("on hold")) {
github.rest.issues.removeLabel({
issue_number: ${{ steps.cpr.outputs.pull-request-number }},
owner: context.repo.owner,
Expand All @@ -186,7 +184,7 @@ jobs:
repo: context.repo.repo,
labels: ["ready"]
})
if (${{ env.PR_LABEL_LIST }}.includes("on hold")) {
if (${{ github.event.pull_request.labels.*.name }}.includes("on hold")) {
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand All @@ -199,7 +197,6 @@ jobs:
continue-on-error: true
uses: actions/github-script@v6
if: ${{ steps.check-return.outputs.PASS_STD != 'True' }}
PR_LABEL_LIST: ${{ github.event.pull_request.labels.*.name }}
with:
script: |
// PR
Expand All @@ -209,7 +206,7 @@ jobs:
repo: context.repo.repo,
labels: ["on hold"]
})
if (${{ env.PR_LABEL_LIST }}.includes('ready')) {
if (${{ github.event.pull_request.labels.*.name }}.includes('ready')) {
github.rest.issues.removeLabel({
issue_number: ${{ steps.cpr.outputs.pull-request-number }},
owner: context.repo.owner,
Expand All @@ -224,7 +221,7 @@ jobs:
repo: context.repo.repo,
labels: ["on hold"]
})
if (${{ env.PR_LABEL_LIST }}.includes('ready')) {
if (${{ github.event.pull_request.labels.*.name }}.includes('ready')) {
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 3390f1d

Please sign in to comment.