From 9ba3c41c96e38630e7ae9047c47f8cc2da0f3124 Mon Sep 17 00:00:00 2001 From: Jake Gealer Date: Thu, 12 Sep 2019 21:15:20 +0100 Subject: [PATCH] Fix auth header, Add new line --- .github/workflows/main.yml | 1 + build/createGithubComment.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 877207a6..f87d1d54 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,6 +34,7 @@ jobs: FOLDER: dist - uses: chrislennon/action-aws-cli@v1.1 + - name: Deploy commit to DigitalOcean Spaces run: aws s3 sync ./dist s3://${{ secrets.SPACES_BUCKET }}/${{ github.sha }} --endpoint=https://${{ secrets.SPACES_REGION }}.digitaloceanspaces.com --acl public-read env: diff --git a/build/createGithubComment.js b/build/createGithubComment.js index 13dada53..9942e5a8 100644 --- a/build/createGithubComment.js +++ b/build/createGithubComment.js @@ -14,7 +14,7 @@ fetch( headers: { "Content-Type": "application/json", Accept: "application/vnd.github.v3+json", - Authorization: `Basic ${Buffer.from(`JakeMakesStuff:${process.env.GITHUB_ACCESS_TOKEN}`).toString("base64")}`, + Authorization: `Basic ${Buffer.from(`github-actions:${process.env.GITHUB_ACCESS_TOKEN}`).toString("base64")}`, } }, ).then(async x => {