Actualizar .github/workflows/sync-to-github.yml
This commit is contained in:
7
.github/workflows/sync-to-github.yml
vendored
7
.github/workflows/sync-to-github.yml
vendored
@@ -2,6 +2,11 @@ name: Sync selected files to GitHub
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
commit_message:
|
||||||
|
description: 'Mensaje del commit en GitHub'
|
||||||
|
required: false
|
||||||
|
default: 'Sync selected files from Gitea'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
@@ -41,4 +46,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd dest
|
cd dest
|
||||||
git add .
|
git add .
|
||||||
git diff --staged --quiet || (git commit -m "Sync selected files from Gitea" && git push origin main)
|
git diff --staged --quiet || (git commit -m "${{ github.event.inputs.commit_message }}" && git push origin main)
|
||||||
Reference in New Issue
Block a user