Skip to content

Commit

Permalink
fix: refactred script
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri authored Oct 5, 2023
1 parent 70046b4 commit ad05f3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/01_add_patch_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
let { ADD_PATCH } = 'true';
var addPatch = "true";
// retrieve label list
let labels = await github.rest.issues.listLabelsOnIssue({
issue_number: context.issue.number,
Expand All @@ -32,11 +32,11 @@ jobs:
});
// verify if user have already added IGNORE-FOR-RELEASE, then skip add PATCH
// note: GitHub labels are added in .identity/03_github_environment.tf
// note: GitHub labels are added in .identity/03_github_environment.tf as github_issue_label resource
if (labels.data.find(label => label.name === 'ignore-for-release')){
ADD_PATCH = 'false';
addPatch = "false";
}
return ADD_PATCH;
return addPatch;
result-encoding: string

- name: Add PATCH label
Expand Down

0 comments on commit ad05f3b

Please sign in to comment.