Skip to content

Import By Config File #49

Import By Config File

Import By Config File #49

Workflow file for this run

name: Importer
on:
workflow_dispatch:
jobs:
importer:
name: "Import-Run"
runs-on: ubuntu-latest
environment: importer-lbgsandbox
env:
JP_TENANT_NAME: ${{ vars.JP_TENANT_NAME }}
JP_CLIENT_ID: ${{ secrets.JP_CLIENT_ID }}
JP_CLIENT_SECRET: ${{ secrets.JP_CLIENT_SECRET }}
WORKING_DIR: ${{ vars.WORKING_DIR }}
steps:
- name: "Checkout"
uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/thejoeker12/[email protected]
pip install git+https://${{ secrets.PAT_TOKEN }}@github.com/deploymenttheory/[email protected]
pip install requests
- name: Run Python script
run: python scripts/import_via_config_file.py
- name: Install Terraform
uses: hashicorp/[email protected]
with:
terraform_version: latest
- name: Terraform fmt
run: |
cd importer_working_dir/
terraform fmt
- name: Commit back to Repo
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Action"
git add importer_working_dir/
git commit -m "Uploading output files"
git push