From cad48f688742a90cfbf4eddc20bae9c1fb00b3fb Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 17 Jan 2025 00:18:33 -0600 Subject: [PATCH 1/4] ci: Update version used in build-and test **Description**: Use published release Signed-off-by: Roger Barker --- .github/workflows/build-and-test-git-semver.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-git-semver.yaml b/.github/workflows/build-and-test-git-semver.yaml index 8e9ee0c..8da25ed 100644 --- a/.github/workflows/build-and-test-git-semver.yaml +++ b/.github/workflows/build-and-test-git-semver.yaml @@ -24,7 +24,7 @@ jobs: fetch-depth: '0' - name: Setup git-semver - uses: ./.github/actions/git-semver-setup + uses: DJ-BBot/setup-git-semver@27972e275f4e87726270df48dec96af0ce64efa5 # v1.0.0 with: version: 'latest' From 43f3d81f01cbda07f1b5beb96550e95ef7ac65c2 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 17 Jan 2025 00:23:52 -0600 Subject: [PATCH 2/4] relocate action.yml to the root Signed-off-by: Roger Barker --- .github/actions/git-semver-setup/action.yml => action.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/actions/git-semver-setup/action.yml => action.yml (100%) diff --git a/.github/actions/git-semver-setup/action.yml b/action.yml similarity index 100% rename from .github/actions/git-semver-setup/action.yml rename to action.yml From 61a46d30043f06be745665026d22d96fa30c3bf0 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 17 Jan 2025 00:27:34 -0600 Subject: [PATCH 3/4] Moved workflows into a test repository Signed-off-by: Roger Barker --- .../workflows/build-and-test-git-semver.yaml | 33 ------------------- .../validate-conventional-commits.yaml | 22 ------------- 2 files changed, 55 deletions(-) delete mode 100644 .github/workflows/build-and-test-git-semver.yaml delete mode 100644 .github/workflows/validate-conventional-commits.yaml diff --git a/.github/workflows/build-and-test-git-semver.yaml b/.github/workflows/build-and-test-git-semver.yaml deleted file mode 100644 index 8da25ed..0000000 --- a/.github/workflows/build-and-test-git-semver.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Build and Test Git-Semver Tool - -on: - push: - branches: - - main - workflow_dispatch: - -defaults: - run: - shell: bash - -permissions: - contents: read - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - fetch-depth: '0' - - - name: Setup git-semver - uses: DJ-BBot/setup-git-semver@27972e275f4e87726270df48dec96af0ce64efa5 # v1.0.0 - with: - version: 'latest' - - - name: Test git-semver - run: | - git-semver \ No newline at end of file diff --git a/.github/workflows/validate-conventional-commits.yaml b/.github/workflows/validate-conventional-commits.yaml deleted file mode 100644 index 51b7bd2..0000000 --- a/.github/workflows/validate-conventional-commits.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: PR Conventional Commit Validation - -on: - pull_request: - -permissions: - contents: read - pull-requests: write - issues: write - -defaults: - run: - shell: bash - -jobs: - validate-pr-title: - runs-on: ubuntu-latest - steps: - - name: PR Conventional Commit Validation - uses: ytanikin/pr-conventional-commits@8267db1bacc237419f9ed0228bb9d94e94271a1d # v1.4.1 - with: - task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' From 98e21b0deaec6e644697f0d81b550bc510a64118 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 17 Jan 2025 00:29:24 -0600 Subject: [PATCH 4/4] Added back validate conventional-commits Signed-off-by: Roger Barker --- .../validate-conventional-commits.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/validate-conventional-commits.yaml diff --git a/.github/workflows/validate-conventional-commits.yaml b/.github/workflows/validate-conventional-commits.yaml new file mode 100644 index 0000000..51b7bd2 --- /dev/null +++ b/.github/workflows/validate-conventional-commits.yaml @@ -0,0 +1,22 @@ +name: PR Conventional Commit Validation + +on: + pull_request: + +permissions: + contents: read + pull-requests: write + issues: write + +defaults: + run: + shell: bash + +jobs: + validate-pr-title: + runs-on: ubuntu-latest + steps: + - name: PR Conventional Commit Validation + uses: ytanikin/pr-conventional-commits@8267db1bacc237419f9ed0228bb9d94e94271a1d # v1.4.1 + with: + task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'