From 6f7155a6329971ee4a8fd7ee178492ad33902150 Mon Sep 17 00:00:00 2001 From: ValentinFrancois Date: Sun, 6 Mar 2022 21:39:00 +0100 Subject: [PATCH 1/3] dummy commit --- tests/test_gitlab_submodule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_gitlab_submodule.py b/tests/test_gitlab_submodule.py index 98c60e4..f4df3f9 100644 --- a/tests/test_gitlab_submodule.py +++ b/tests/test_gitlab_submodule.py @@ -82,6 +82,7 @@ def test_list_subprojects_with_relative_urls(self): subproject.submodule.path, subproject.project.ssh_url_to_repo, subproject.commit.id)) + # test def test_list_subprojects_with_external_urls(self): project = self.gl.projects.get( From 23d08d21b01b7c68566b5ec0a5c0192c2a7eadc4 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 6 Mar 2022 20:46:34 +0000 Subject: [PATCH 2/3] Add empty commit to force use PR title during squash merge From 8d1b8a0d6ca4cab2b1d58c7fa5d9f1411bec6aac Mon Sep 17 00:00:00 2001 From: ValentinFrancois Date: Sun, 6 Mar 2022 21:47:37 +0100 Subject: [PATCH 3/3] fix release ci --- .github/workflows/release.yml | 11 ++++------- tests/test_gitlab_submodule.py | 1 - 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4819ec7..ce077a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,15 +13,12 @@ jobs: version_bump: runs-on: ubuntu-latest + if: | + startsWith(github.event.head_commit.message, '[MAJOR]') || + startsWith(github.event.head_commit.message, '[MINOR]') || + startsWith(github.event.head_commit.message, '[PATCH]') steps: - - name: Check commit message - if: | - (!startsWith(github.event.head_commit.message, '[MAJOR]')) && - (!startsWith(github.event.head_commit.message, '[MINOR]')) && - (!startsWith(github.event.head_commit.message, '[PATCH]')) - run: exit 1 - - uses: actions/checkout@v2 - name: Set up Python diff --git a/tests/test_gitlab_submodule.py b/tests/test_gitlab_submodule.py index f4df3f9..98c60e4 100644 --- a/tests/test_gitlab_submodule.py +++ b/tests/test_gitlab_submodule.py @@ -82,7 +82,6 @@ def test_list_subprojects_with_relative_urls(self): subproject.submodule.path, subproject.project.ssh_url_to_repo, subproject.commit.id)) - # test def test_list_subprojects_with_external_urls(self): project = self.gl.projects.get(