From 3bc33bd852e589692a473ef93c2fe1d894f51717 Mon Sep 17 00:00:00 2001 From: NSPC911 Date: Thu, 25 Jul 2024 21:02:52 +0800 Subject: [PATCH] Workflow API asks for title now --- .github/workflows/submodule-update.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/submodule-update.yml b/.github/workflows/submodule-update.yml index 871bbbe..ce94fd7 100644 --- a/.github/workflows/submodule-update.yml +++ b/.github/workflows/submodule-update.yml @@ -2,6 +2,11 @@ name: Update Submodules on: workflow_dispatch: + inputs: + title: + description: 'Title for the workflow run' + required: true + default: 'Triggered by API' jobs: update-submodules: @@ -32,5 +37,5 @@ jobs: git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' git add . - git commit -m "Updated submodules" - git push origin main \ No newline at end of file + git commit -m "Updated submodules - ${{ github.event.inputs.title }}" + git push origin main