From a7870d069a91acf8a355f3e05ac2370a0a1ed21c Mon Sep 17 00:00:00 2001 From: David Zager Date: Tue, 6 Feb 2024 12:46:46 -0500 Subject: [PATCH] :seedling: use konveyor-bot app to handle issue comment Signed-off-by: David Zager --- .github/workflows/reconcile-issue-comment.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reconcile-issue-comment.yaml b/.github/workflows/reconcile-issue-comment.yaml index b6252fc..f92d227 100644 --- a/.github/workflows/reconcile-issue-comment.yaml +++ b/.github/workflows/reconcile-issue-comment.yaml @@ -22,9 +22,17 @@ jobs: name: Add Labels runs-on: ubuntu-latest steps: - - name: ok + - name: Get Token + id: get_workflow_token + uses: peter-murray/workflow-application-token-action@v3 + with: + application_id: ${{ vars.KONVEYOR_BOT_ID }} + application_private_key: ${{ secrets.KONVEYOR_BOT_KEY }} + + - name: Handle commands uses: actions/github-script@v7 with: + github-token: ${{ steps.get_workflow_token.outputs.token }} script: | const commentRegex = /()|()|(