From dcd3e3e97970e3fa20cc51f141f33765d6b70c90 Mon Sep 17 00:00:00 2001 From: Joseph Little Date: Thu, 5 Sep 2024 15:04:46 +0100 Subject: [PATCH] rework again --- .github/workflows/importer.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/importer.yml b/.github/workflows/importer.yml index 687a377..06c76b2 100644 --- a/.github/workflows/importer.yml +++ b/.github/workflows/importer.yml @@ -28,20 +28,13 @@ jobs: with: python-version: '3.x' - - name: Configure Git credentials + - name: Install dependencies env: PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - id: git-config - run: | - git config --global url."https://${PERSONAL_ACCESS_TOKEN}@github.com/".insteadOf "https://github.com/" - echo "git_configured=true" >> $GITHUB_OUTPUT - - - name: Install dependencies - if: steps.git-config.outputs.git_configured == 'true' run: | python -m pip install --upgrade pip - pip install git+https://github.com/deploymenttheory/jamftf-python-terraform-importer@latest - pip install git+https://github.com/thejoeker12/jamfpy@latest + pip install git+https://${PERSONAL_ACCESS_TOKEN}@github.com/deploymenttheory/jamftf-python-terraform-importer@latest + pip install git+https://${PERSONAL_ACCESS_TOKEN}@github.com/thejoeker12/jamfpy@latest pip install -r scripts/requirements.txt - name: Run Python script