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