From 6c92efdc0f1a8bc97556bb8f407ee89d95e03c6c Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Mon, 4 Mar 2024 13:52:28 +0400 Subject: [PATCH] Align PR commit messages --- .github/workflows/docs.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 4d12b4e..57e706f 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -19,6 +19,8 @@ jobs: startsWith(github.event.repository.name, 'awesome-') && github.event.repository.name != 'awesome-template' runs-on: ubuntu-22.04 + env: + PR_COMMIT_MSG: "[sync] Updates from awesome-template" # We need custom PAT through the whole job so we get workflow permissions to update all the boilerplate .github # files from awesome-template. steps: @@ -33,7 +35,7 @@ jobs: github_token: ${{ secrets.WORKFLOW_UPDATE_GITHUB_PAT || secrets.GITHUB_TOKEN }} source_repo_path: kdeldycke/awesome-template pr_title: "[sync] Updates from `awesome-template`" - pr_commit_msg: "[sync] Updates from `awesome-template`" + pr_commit_msg: ${{ env.PR_COMMIT_MSG }} pr_branch_name_prefix: "sync-awesome-template" pr_labels: "📚 documentation" @@ -84,7 +86,7 @@ jobs: # See: https://stackoverflow.com/a/26172014 run: | git reset --soft HEAD~2 - git commit --message "[sync] Updates from `awesome-template`" + git commit --message "${{ env.PR_COMMIT_MSG }}" - name: Push new commit history to PR run: |