diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index abbcfbd..d4606d1 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -44,7 +44,7 @@ jobs: - name: Run renderDtype run: npm run renderDtype env: - MY_SECRET: ${{ secrets.ENV_DANNGER}} + MY_SECRET: ${{ secrets.GITHUB_TOKEN}} # - name: Update submodule # run: | # git stash # Stash any changes diff --git a/src/utils/proto.ts b/src/utils/proto.ts index 6b84acf..65c9009 100644 --- a/src/utils/proto.ts +++ b/src/utils/proto.ts @@ -164,7 +164,7 @@ class ProtobufjsRender { if (fileTsPre != fileTsAfter) { console.log('TWO FILE IS DIFFERENT, PREPARE TO PUSH') - const secretValue = process.env.GITHUB_TOKEN + const secretValue = process.env.MY_SECRET console.log('TOKEN AUT: ', secretValue) // Create a personal access token at https://github.com/settings/tokens/new?scopes=repo const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN })