Compare commits

...

10 Commits

Author SHA1 Message Date
Zanie
ab6f173bc1 Add tag ltieral 2023-09-15 14:55:37 -05:00
Zanie
500d1b854b Demo full changes 2023-09-15 14:54:24 -05:00
Zanie
1c0c00d22d Unshallow main 2023-09-15 14:39:00 -05:00
Zanie
675cc216cb Test an older commit 2023-09-15 14:38:02 -05:00
Zanie
3fcfa50212 Try checking out main isntead of a the commit 2023-09-15 14:36:55 -05:00
Zanie
bf0d645692 Remove unshallow 2023-09-15 14:32:54 -05:00
Zanie
f392791b69 Fix depth 2023-09-15 14:31:53 -05:00
Zanie
b015a06966 Use a full clone 2023-09-15 14:29:24 -05:00
Zanie Blue
8cf0708b96 Remove branch 2023-09-15 14:27:09 -05:00
Zanie
3bc593ad7f DEBUG: Test main branch check for release 2023-09-15 14:22:49 -05:00

View File

@@ -366,3 +366,31 @@ jobs:
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}
tmp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main # We checkout the main branch to check for the commit
- name: Check main branch
run: |
# Fetch the main branch since a shallow checkout is used by default
git fetch origin main --unshallow
if ! git branch --contains 0c030b5bf31e425cb6070db7386243eca6dbd8f1 | grep -E '(^|\s)main$'; then
echo "The specified sha is not on the main branch" >&2
exit 1
fi
- name: Check tag consistency
run: |
# Switch to the commit we want to release
git checkout 0c030b5bf31e425cb6070db7386243eca6dbd8f1
version=$(grep "version = " pyproject.toml | sed -e 's/version = "\(.*\)"/\1/g')
if [ "0.0.290" != "${version}" ]; then
echo "The input tag does not match the version from pyproject.toml:" >&2
echo "0.0.290" >&2
echo "${version}" >&2
exit 1
else
echo "Releasing ${version}"
fi