From a08449169aebdbf6fa45060c41cec0e9eca04500 Mon Sep 17 00:00:00 2001 From: Niklas Koehnecke Date: Wed, 10 Apr 2024 11:16:17 +0200 Subject: [PATCH] troubleshooting --- .github/workflows/artifactory.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifactory.yml b/.github/workflows/artifactory.yml index a69e2db40..e44288f5a 100644 --- a/.github/workflows/artifactory.yml +++ b/.github/workflows/artifactory.yml @@ -1,4 +1,4 @@ -name: Blueprint for Github Actions Usage (Push to PyPi Repository) +name: Artifactory Deployment of PyPi and trace-viewer on: push: {} @@ -19,7 +19,9 @@ jobs: run: | ID_TOKEN=$(curl -sLS -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \ "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=https://alephalpha.jfrog.io" | jq .value | tr -d '"') - echo "ID_TOKEN=${ID_TOKEN}" >> $GITHUB_ENV + echo "ID_TOKEN=${ID_TOKEN}" >> "$GITHUB_ENV" + echo $GITHUB_ENV + cat $GITHUB_ENV - name: Get Jfrog Access Token with Github Identity Token env: ID_TOKEN: ${{ env.ID_TOKEN }} @@ -47,6 +49,9 @@ jobs: env: JFROG_ACCESS_TOKEN: ${{ env.JFROG_ACCESS_TOKEN }} run: | + echo $GITHUB_ENV + cat $GITHUB_ENV + echo $JFROG_ACCESS_TOKEN poetry build poetry config repositories.artifactory $ARTIFACTORY_URL/artifactory/api/pypi/$ARTIFACTORY_PYPI_REPOSITORY JFROG_ACCESS_TOKEN_SUBJECT=$(echo $JFROG_ACCESS_TOKEN | awk -F'.' '{print $2}' | sed 's/.\{1,3\}$/&==/' | base64 -d | jq '.sub' -r)