Skip to content

Commit

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

0 comments on commit f5b506f

Please sign in to comment.