diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bb3cf52..5fc47fe 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -22,6 +22,9 @@ jobs: - name: Install dependencies run: npm install + - name: Print GitHub token + run: echo ${{ secrets.GITHUB_TOKEN }} + - name: Hello world action step uses: ./ id: hello diff --git a/index.js b/index.js index bb70300..356f40e 100644 --- a/index.js +++ b/index.js @@ -99,8 +99,8 @@ async function commitChanges(filePath) { }, { headers: { - Accept: 'application/vnd.github.v3+json', - Authorization: `Bearer ${githubToken}`, + 'Accept': 'application/vnd.github.v3+json', + 'Authorization': `Bearer ${githubToken}`, }, } );