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 e20d2e6 commit a39af7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto-update-codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ jobs:
} else {
console.log('${{ matrix.need_job }}未能成功推送代码生成更新,不执行创建PR的步骤');
}
- name: 解密token
if: ${{ needs[matrix.need_job].outputs.pushed }} == 'true'
- name: 为创建PR的任务解密token
if: ${{ success() && (needs[matrix.need_job].outputs.pushed == 'true' || true) }}
id: decrypt-app-token
run: |
result=$(gpg --decrypt --quiet --batch --passphrase "${{ secrets.SECRET_PASSING_KEY }}" --output - <(echo "${{ needs.generate-token.outputs.ENCRYPTED_TOKEN }}" | base64 --decode))
echo "::add-mask::$result"
echo "DECRYPTED_TOKEN=$result" >> $GITHUB_OUTPUT
- name: 尝试创建PR
if: ${{ success() && needs[matrix.need_job].outputs.pushed == 'true' }}
if: steps.decrypt-app-token.outcome == 'success'
uses: ./.github/workflows/create-pr
with:
repo: ${{ matrix.repo }}
Expand Down

0 comments on commit a39af7d

Please sign in to comment.