Skip to content

Commit

Permalink
Update prt_labels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Omkar Khatavkar authored Feb 22, 2024
1 parent 96e1d77 commit dfbb156
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/prt_labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
if: always()
run: echo "${{steps.prt.outputs.result}}"

- name: remove the PRT Passed/Failed label for new commit
if: always() && ${{steps.status.outputs.result}} == 'not found'
- name: remove the PRT Passed/Failed label, for new commit
if: always() && ${{steps.prt.outputs.result}} == 'not_found'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.CHERRYPICK_PAT }}
script: |
const prNumber = ${{ github.event.number }};
const prNumber = '${{ github.event.number }}';
const issue = await github.rest.issues.get({
owner: context.issue.owner,
repo: context.issue.repo,
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
});
const labelsToRemove = ['PRT-Failed', 'PRT-Passed'];
Expand Down

0 comments on commit dfbb156

Please sign in to comment.