From c81473bfb345d4719ff0fa9c4a2ec1644b332845 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Mon, 9 Sep 2024 15:08:26 -0400 Subject: [PATCH] ENH: Update "commit-message" workflow to use dedicated GitHub action Switch to using the dedicated slicer-check-commit-message-action for better tracking of updates by Dependabot. This replaces the reusable workflow previously maintained in the Slicer repository. By pinning the version of the standalone action, Dependabot will now track updates specific to the commit-message action, avoiding unnecessary references to broader Slicer changes. --- .github/workflows/commit-message.yml | 7 ++++++- .../.github/workflows/commit-message.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit-message.yml b/.github/workflows/commit-message.yml index 10f2b47..eec8a88 100644 --- a/.github/workflows/commit-message.yml +++ b/.github/workflows/commit-message.yml @@ -16,4 +16,9 @@ permissions: jobs: check-commit-message: - uses: Slicer/Slicer/.github/workflows/commit-message.yml@418027bc07ce0aff12fe97c0e769062cc090a961 # main + runs-on: ubuntu-latest + steps: + - name: Check Commit Message + uses: Slicer/slicer-check-commit-message-action@26db1d4a0580194025a00bff6f5c24a88c0efb9f # v1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/{{cookiecutter.project_name}}/.github/workflows/commit-message.yml b/{{cookiecutter.project_name}}/.github/workflows/commit-message.yml index 2c5f3fa..940f790 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/commit-message.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/commit-message.yml @@ -16,4 +16,9 @@ permissions: jobs: check-commit-message: - uses: Slicer/Slicer/.github/workflows/commit-message.yml@f2b79dcfcbf628695607cfa68789d1c0143de2c0 # main + runs-on: ubuntu-latest + steps: + - name: Check Commit Message + uses: Slicer/slicer-check-commit-message-action@26db1d4a0580194025a00bff6f5c24a88c0efb9f # v1.0.0 + with: + token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}