diff --git a/.github/workflows/temp.yml b/.github/workflows/temp.yml index d5dcac2d..0faf7a3b 100644 --- a/.github/workflows/temp.yml +++ b/.github/workflows/temp.yml @@ -22,8 +22,9 @@ jobs: with: script: | const downloadUrl = "https://api.github.com/repos/Kommunicate-io/Kommunicate-Android-Chat-SDK/actions/artifacts/2355441843" - var token = ${{ secrets.DOWNLOAD_TOKEN }} - console.log(token); - const authenticatedUrl = `${downloadUrl}?access_token=${token}`; + console.log(${process.env.GITHUB_TOKEN}); + const authenticatedUrl = `${downloadUrl}?access_token=${process.env.GITHUB_TOKEN}`; core.setOutput('artifact_url', authenticatedUrl); - console.log(`Authenticated Artifact URL: ${authenticatedUrl}`); \ No newline at end of file + console.log(`Authenticated Artifact URL: ${authenticatedUrl}`); + env: + GITHUB_TOKEN: ${{ secrets.DOWNLOAD_TOKEN }} \ No newline at end of file