summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2023-08-01 18:33:00 -0400
committerAustin S. Hemmelgarn <austin@netdata.cloud>2023-08-01 18:33:00 -0400
commitb4fd6d5f1898a5b1b2d634bc5819da58f9522d4d (patch)
treea5b9e3747e1721ea4471166c0bb3dae73c48e358 /.github
parent49096a94b0f81c27696eb20d0305a849067e3cb5 (diff)
Correctly fix dependencies for generating integrations.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/generate-integrations.yml18
1 files changed, 11 insertions, 7 deletions
diff --git a/.github/workflows/generate-integrations.yml b/.github/workflows/generate-integrations.yml
index 5e3a17b81f..ec5e4a4259 100644
--- a/.github/workflows/generate-integrations.yml
+++ b/.github/workflows/generate-integrations.yml
@@ -45,14 +45,18 @@ jobs:
- name: Prepare Dependencies
id: prep-deps
run: |
- sudo apt-get install python3-pip
- sudo pip install referencing jsonschema jinja2 ruamel.yaml
+ sudo apt-get install python3-venv
+ python3 -m venv ./virtualenv
+ source ./virtualenv/bin/activate
+ pip install jsonschema referencing jinja2 ruamel.yaml
- name: Generate Integrations
id: generate
- run: integrations/gen_integrations.py
- - name: Clean Up Go Repo
- id: clean-go
- run: rm -rf go.d.plugin
+ run: |
+ source ./virtualenv/bin/activate
+ python3 integrations/gen_integrations.py
+ - name: Clean Up Temporary Data
+ id: clean
+ run: rm -rf go.d.plugin virtualenv
- name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@v5
@@ -82,7 +86,7 @@ jobs:
Checkout Go: ${{ steps.checkout-go.outcome }}
Prepare Dependencies: ${{ steps.prep-deps.outcome }}
Generate Integrations: ${{ steps.generate.outcome }}
- Clean Up Go Repository: ${{ steps.clean-go.outcome }}
+ Clean Up Temporary Data: ${{ steps.clean.outcome }}
Create PR: ${{ steps.create-pr.outcome }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
if: >-