Skip to content

Commit

Permalink
auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Shan committed Sep 2, 2023
1 parent fa74c74 commit ae22dbc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/auto-update-codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ jobs:
import { writeFileSync } from "fs";
const appOctokit = new Octokit({ authStrategy: createAppAuth, auth: { appId: '${{ secrets.APP_ID }}', privateKey: `${{ secrets.APP_PRIVATE_KEY_53AIYSR }}` } });
const installation = await appOctokit.rest.apps.getOrgInstallation({ org: ${{ github.repository_owner }} });
const installation = await appOctokit.rest.apps.getOrgInstallation({ org: '${{ github.repository_owner }}' });
const { token } = await appOctokit.auth({ type: "installation", installationId: installation.data.id, });
console.log(`::add-mask::${token}`);
writeFileSync(process.env.GITHUB_OUTPUT, `APP_TOKEN=${token}`, {flag: 'a'});
run: echo "$SCRIPT_CONTENT" >> generate-token.mjs
run: |
echo "::add-mask::$SCRIPT_CONTENT"
echo "$SCRIPT_CONTENT" >> generate-token.mjs
- id: gen-app-token
run: node generate-token.mjs

Expand Down

0 comments on commit ae22dbc

Please sign in to comment.