Skip to content

Commit

Permalink
ci: Relocate insight execution from a workflow_run to a post-lint step (
Browse files Browse the repository at this point in the history
#1085)

We were not getting the desired behavior from a workflow_run.

Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
  • Loading branch information
bjhargrave authored May 16, 2024
1 parent 3eb556c commit 39d5ea3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 40 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/coc_violation_analysis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,10 @@ jobs:
TAXONOMY_FOLDERS: >-
compositional_skills
knowledge
- name: "Invoke insight handler"
if: ${{ (steps.changed-files.outputs.any_changed == 'true') && (github.event_name == 'pull_request') && (github.repository == 'instructlab/taxonomy') }}
run: |
echo "${{ toJSON(github.event) }}"
curl -X 'POST' "https://pr-analysis-handler.1fuhf5gskmng.us-east.codeengine.appdomain.cloud/analyze-pr?pr_number=${{ github.event.number }}&owner=${{ github.repository_owner }}&repo=${{ github.event.repository.name }}" -H 'accept: application/json' -H 'Authorization: Bearer ${{ secrets.COC_ANALYSIS_TOKEN }}' -d '' &
echo "CoC violation analysis triggered"

0 comments on commit 39d5ea3

Please sign in to comment.