Skip to content

Commit

Permalink
fix compile-assets.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Aug 15, 2023
1 parent b4313d0 commit 54ed882
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/compile-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -66,13 +69,13 @@ 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
- 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

0 comments on commit 54ed882

Please sign in to comment.