From f5b506fbaf84703ba3f87448c161fa14c1a374b1 Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Tue, 15 Aug 2023 18:51:35 +0300 Subject: [PATCH] Revert "fix compile-assets.yml" This reverts commit 54ed882a257d6fa2ab5f2b1515a9590482c9ce50. --- .github/workflows/compile-assets.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/compile-assets.yml b/.github/workflows/compile-assets.yml index 7320af1..cbb3b70 100644 --- a/.github/workflows/compile-assets.yml +++ b/.github/workflows/compile-assets.yml @@ -6,21 +6,18 @@ on: nodejs: type: string default: '20.x' - gpg_bot_token: + secrets: + GPG_BOT: required: true - type: string description: bot gpg token - gpg_passphrase: + GPG_PASSPHRASE: required: true - type: string description: bot gpg passphrase - gpg_fingerprint: + GPG_FINGERPRINT: required: true - type: string description: bot gpg fingerprint - github_bot_token: + BOT_TOKEN: required: true - type: string description: bot token jobs: @@ -57,9 +54,9 @@ jobs: if: ${{ steps.has-changes.outputs.stdout }} uses: crazy-max/ghaction-import-gpg@v5 with: - gpg_private_key: ${{ inputs.gpg_bot_token }} - passphrase: ${{ inputs.gpg_passphrase }} - fingerprint: ${{ inputs.gpg_fingerprint }} + gpg_private_key: ${{ secrets.GPG_BOT }} + passphrase: ${{ secrets.GPG_PASSPHRASE }} + fingerprint: ${{ secrets.GPG_FINGERPRINT }} git_config_global: true git_user_signingkey: true git_commit_gpgsign: true @@ -69,7 +66,7 @@ jobs: - name: "Commit files" if: ${{ steps.has-changes.outputs.stdout }} env: - GH_TOKEN: ${{ inputs.github_bot_token }} + GH_TOKEN: ${{ secrets.BOT_TOKEN }} run: | gh pr checkout ${{ github.event.pull_request.number }} git commit -S -m "build action" -a @@ -77,5 +74,5 @@ jobs: - name: "Push changes" if: ${{ steps.has-changes.outputs.stdout }} env: - GITHUB_TOKEN: ${{ inputs.github_bot_token }} + GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} run: git push -u origin HEAD