From a986da2de60b0a15a72806c9f9cfae38dbab8f83 Mon Sep 17 00:00:00 2001
From: Lulu <morgan@parity.io>
Date: Wed, 7 Aug 2024 10:37:29 +0100
Subject: [PATCH] Run semver check even when no prdoc (#5189)

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---
 .github/workflows/check-semver.yml         | 10 +++++-----
 .github/workflows/publish-check-crates.yml |  2 +-
 .github/workflows/publish-claim-crates.yml |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/check-semver.yml b/.github/workflows/check-semver.yml
index 7d9fb68b90b..d9d918b44a2 100644
--- a/.github/workflows/check-semver.yml
+++ b/.github/workflows/check-semver.yml
@@ -3,8 +3,6 @@ name: Check semver
 on:
   pull_request:
     types: [opened, synchronize, reopened, ready_for_review]
-    paths:
-      - prdoc/*.prdoc
   workflow_dispatch:
 
 concurrency:
@@ -24,10 +22,12 @@ jobs:
       - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
 
       - name: extra git setup
+        env:
+          BASE: ${{ github.event.pull_request.base.sha }}
         run: |
           git config --global --add safe.directory '*'
-          git fetch --no-tags --no-recurse-submodules --depth=1 origin master
-          git branch old origin/master
+          git fetch --no-tags --no-recurse-submodules --depth=1 origin $BASE
+          git branch old $BASE
 
       - name: Comment If Backport
         if: ${{ startsWith(github.event.pull_request.base.ref, 'stable') }}
@@ -74,7 +74,7 @@ jobs:
 
       - name: install parity-publish
         # Set the target dir to cache the build.
-        run: CARGO_TARGET_DIR=./target/ cargo install parity-publish -q
+        run: CARGO_TARGET_DIR=./target/ cargo install parity-publish@0.8.0 -q
 
       - name: check semver
         run: |
diff --git a/.github/workflows/publish-check-crates.yml b/.github/workflows/publish-check-crates.yml
index e627987105a..9f96b92e0ce 100644
--- a/.github/workflows/publish-check-crates.yml
+++ b/.github/workflows/publish-check-crates.yml
@@ -20,7 +20,7 @@ jobs:
           cache-on-failure: true
 
       - name: install parity-publish
-        run: cargo install parity-publish@0.7.0
+        run: cargo install parity-publish@0.8.0
 
       - name: parity-publish check
         run: parity-publish --color always check --allow-unpublished
diff --git a/.github/workflows/publish-claim-crates.yml b/.github/workflows/publish-claim-crates.yml
index 167a10a8389..bee709a1207 100644
--- a/.github/workflows/publish-claim-crates.yml
+++ b/.github/workflows/publish-claim-crates.yml
@@ -18,7 +18,7 @@ jobs:
           cache-on-failure: true
 
       - name: install parity-publish
-        run: cargo install parity-publish@0.7.0
+        run: cargo install parity-publish@0.8.0
 
       - name: parity-publish claim
         env:
-- 
GitLab