Revert "Add git hash to version for master builds"

This reverts commit af1f3b45c5.
This commit is contained in:
Donkie
2023-09-17 09:43:18 +02:00
parent a8080f507e
commit a1a4ad6b45

View File

@@ -43,15 +43,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Add git hash to version
if: github.ref == 'refs/heads/master'
run: |
current_version=$(grep -m 1 -oP 'version = "\K[^"]+' pyproject.toml)
latest_commit_hash=$(git rev-parse --short HEAD)
new_version="${current_version}+${latest_commit_hash}"
sed -i 's/version = \"${current_version}\"/version = \"${new_version}\"/' pyproject.toml
echo "Set project to version ${new_version}"
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
@@ -172,15 +163,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Add git hash to version
if: github.ref == 'refs/heads/master'
run: |
current_version=$(grep -m 1 -oP 'version = "\K[^"]+' pyproject.toml)
latest_commit_hash=$(git rev-parse --short HEAD)
new_version="${current_version}+${latest_commit_hash}"
sed -i 's/version = \"${current_version}\"/version = \"${new_version}\"/' pyproject.toml
echo "Set project to version ${new_version}"
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2
@@ -213,15 +195,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Add git hash to version
if: github.ref == 'refs/heads/master'
run: |
current_version=$(grep -m 1 -oP 'version = "\K[^"]+' pyproject.toml)
latest_commit_hash=$(git rev-parse --short HEAD)
new_version="${current_version}+${latest_commit_hash}"
sed -i 's/version = \"${current_version}\"/version = \"${new_version}\"/' pyproject.toml
echo "Set project to version ${new_version}"
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2
@@ -254,15 +227,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Add git hash to version
if: github.ref == 'refs/heads/master'
run: |
current_version=$(grep -m 1 -oP 'version = "\K[^"]+' pyproject.toml)
latest_commit_hash=$(git rev-parse --short HEAD)
new_version="${current_version}+${latest_commit_hash}"
sed -i 's/version = \"${current_version}\"/version = \"${new_version}\"/' pyproject.toml
echo "Set project to version ${new_version}"
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2