generated from deploymenttheory/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.54 KB
/
importer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Importer
on:
push:
branches:
- '*'
workflow_dispatch:
jobs:
importer:
name: "Import-Run"
runs-on: ubuntu-latest
environment: importer-lbgsandbox
env:
JAMFTF_JPRO_TENANT_ID: ${{ vars.JAMFTF_JPRO_TENANT_ID }}
JPRO_CLIENT_ID: ${{ secrets.JPRO_CLIENT_ID }}
JPRO_CLIENT_SECRET: ${{ secrets.JPRO_CLIENT_SECRET }}
JAMFTF_CONFIG_FP: ${{ vars.JAMFTF_CONFIG_FP }}
JAMFTF_OUTPUT_DIR: ${{ vars.JAMFTF_OUTPUT_DIR }}
JAMFTF_DEBUG_MODE: false
steps:
- name: "Checkout"
uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global url."https://[email protected]".insteadOf "https://github.com"
python -m pip install --upgrade pip
pip install git+https://github.com/thejoeker12/[email protected]
pip install git+https:/thejoeker12:$PERSONAL_ACCESS_TOKEN/github.com/deploymenttheory/[email protected]
pip install -r scripts/requirements.txt
- name: Run Python script
run: python scripts/import_via_config_file.py