Repository: hhursev/recipe-scrapers (language: python)

Issue:
Note: off-branch git tag for release 15.2.0
During preparation of the [15.2.0 release](https://github.com/hhursev/recipe-scrapers/releases/tag/15.2.0), I'd forgotten to pull the latest changes from `main` before creating the [`15.2.0` tag](https://github.com/hhursev/recipe-scrapers/tree/15.2.0) (at 0a5c19e2159af88a8e8cbaa59a96a40692d0befb) in git.  Typical!

I rebased `main`, but forgot to update that tag before initiating the release process.  @hhursev any chance you could yank the 15.2.0 release from PyPi?

(in this case it shouldn't contain any differences from the intended release commit (19eb5fcafdea9404b9e76c79f8f589ee8e2ee788), because the only missing commit was test-related-only.. but even so, in principle it's best for the releases to be accurate, and to have corresponding tags on the expected branch...)


Discussion / hints:
@hhursev any chance you could help with this?

In short: I'd like to yank the 15.2.0 release because it was released from an off-branch commit.

I should probably try to add a check to the workflow so that this doesn't happen again, too.

Fix patch:
diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml
index 7f10e4b63..4fc6fe373 100644
--- a/.github/workflows/publish.yaml
+++ b/.github/workflows/publish.yaml
@@ -9,6 +9,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
+      - name: Check that the release commit can be found in a release branch
+        run: git branch main v14 --contains ${{ github.sha }} | egrep '.+'
       - name: Set up Python
         uses: actions/setup-python@v4
         with:


Test patch:
diff --git a/.github/workflows/test_publish.yaml b/.github/workflows/test_publish.yaml
index 8e03ef01d..eed9d72db 100644
--- a/.github/workflows/test_publish.yaml
+++ b/.github/workflows/test_publish.yaml
@@ -14,6 +14,8 @@ jobs:
     runs-on: ubuntu-24.04
     steps:
       - uses: actions/checkout@v3
+      - name: Check that the release commit can be found in a release branch
+        run: git branch main v14 --contains ${{ github.sha }} | egrep '.+'
       - name: Set up Python
         uses: actions/setup-python@v4
         with: