Skip to content

Commit

Permalink
hail mary (#53033)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade authored Nov 25, 2021
1 parent d37680b commit e3339be
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/test_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,13 @@ jobs:
if [[ "${{ github.event.workflow_run.name }}" == "Basic Build and Test (GCC 9, Curses, LTO)" ]]; then
echo "::set-output name=label::BasicBuildPassed"
fi
- name: get-pr-id
uses: actions/github-script@v5
with:
github-token: ${{ secrets.TX_PR_CREATOR }}
script: |
github.rest.repos.listPullRequestsAssociatedWithCommit({
owner: context.repo.owner,
repo: context.repo.repo,
commit_sha: '${{ github.event.workflow_run.head_commit.id }}'
})
- name: debug
run: echo ${{ steps.get-pr-id.outputs.result }}
- name: set-label
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: actions/github-script@v5
with:
script: |
github.rest.issues.addLabels({
issue_number: ${{ steps.get-pr-id.outputs.result[0].number }},
issue_number: ${{github.event.pull_request.number}},
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['${{ steps.setLabel.outputs.label }}']
Expand All @@ -49,7 +37,7 @@ jobs:
with:
script: |
github.rest.issues.removeLabel({
issue_number: ${{ steps.get-pr-id.outputs.result[0].number }},
issue_number: ${{github.event.pull_request.number}},
owner: context.repo.owner,
repo: context.repo.repo,
name: '${{ steps.setLabel.outputs.label }}'
Expand Down

0 comments on commit e3339be

Please sign in to comment.