fix: manual-build-pro-image.yml

This commit is contained in:
chenos 2024-04-03 09:46:31 +08:00 committed by GitHub
parent b11066434e
commit 8076e55fc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,7 @@ on:
inputs:
pr_number:
description: 'Please enter a pull request number'
required: true
jobs:
build-and-push:
@ -30,7 +31,7 @@ jobs:
with:
repository: nocobase/pro-plugins
path: packages/pro-plugins
ref: ${{ inputs.pr_number && 'refs/pull/' + inputs.pr_number + '/head' || 'main' }}
ref: ${{ inputs.pr_number != 'main' && 'refs/pull/' + inputs.pr_number + '/head' || 'main' }}
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
- name: rm .git
run: rm -rf packages/pro-plugins/.git && git config --global user.email "you@example.com" && git config --global user.name "Your Name" && git add -A && git commit -m "tmp commit"