Archived
Merge pull request 'feat(action): 新增顯示 Codex 帳號步驟' (#9) from develop into master
CD / DEPLOY (push) Successful in 3s
CD / DEPLOY (push) Successful in 3s
Reviewed-on: #9
This commit was merged in pull request #9.
This commit is contained in:
+3
-1
@@ -22,4 +22,6 @@ runs:
|
|||||||
- name: Login Codex with OAuth
|
- name: Login Codex with OAuth
|
||||||
env:
|
env:
|
||||||
OAUTH: ${{ inputs.oauth }}
|
OAUTH: ${{ inputs.oauth }}
|
||||||
run: echo $OAUTH | base64 --decode > ~/.codex/auth.json
|
run: echo $OAUTH | base64 --decode > ~/.codex/auth.json
|
||||||
|
- name: Show Codex Account
|
||||||
|
run: node -e 'console.log(JSON.parse(Buffer.from(JSON.parse(require("fs").readFileSync(process.env.HOME+"/.codex/auth.json")).tokens.id_token.split(".")[1],"base64")).email)'
|
||||||
Reference in New Issue
Block a user