Correctly fix dependencies for generating integrations.
Austin S. Hemmelgarn committed
Aug 1, 2023 at 18:33 UTC
b4fd6d5f1898a5b1b2d634bc5819da58f9522d4d
1 file changed
+11
-7
.github/workflows/generate-integrations.yml
+11
-7
@@ -45,14 +45,18 @@ jobs:
45
- name: Prepare Dependencies
46
id: prep-deps
47
run: |
48
- sudo apt-get install python3-pip
49
- sudo pip install referencing jsonschema jinja2 ruamel.yaml
48
+ sudo apt-get install python3-venv
49
+ python3 -m venv ./virtualenv
50
+ source ./virtualenv/bin/activate
51
+ pip install jsonschema referencing jinja2 ruamel.yaml
52
- name: Generate Integrations
53
id: generate
52
- run: integrations/gen_integrations.py
53
- - name: Clean Up Go Repo
54
- id: clean-go
55
- run: rm -rf go.d.plugin
54
+ run: |
55
+ source ./virtualenv/bin/activate
56
+ python3 integrations/gen_integrations.py
57
+ - name: Clean Up Temporary Data
58
+ id: clean
59
+ run: rm -rf go.d.plugin virtualenv
60
- name: Create PR
61
id: create-pr
62
uses: peter-evans/create-pull-request@v5
@@ -82,7 +86,7 @@ jobs:
86
Checkout Go: ${{ steps.checkout-go.outcome }}
87
Prepare Dependencies: ${{ steps.prep-deps.outcome }}
88
Generate Integrations: ${{ steps.generate.outcome }}
85
- Clean Up Go Repository: ${{ steps.clean-go.outcome }}
89
+ Clean Up Temporary Data: ${{ steps.clean.outcome }}
90
Create PR: ${{ steps.create-pr.outcome }}
91
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
92
if: >-