From dbeddb97fb5876277fe2c0f78bfc25aa65a8d512 Mon Sep 17 00:00:00 2001 From: Brent Huisman <brenthuisman@users.noreply.github.com> Date: Tue, 2 Aug 2022 14:15:49 +0200 Subject: [PATCH] Action must change `VERSION` except on version tag. (#1931) --- .github/workflows/ciwheel.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ciwheel.yml b/.github/workflows/ciwheel.yml index a7ea9666..7a8c54b1 100644 --- a/.github/workflows/ciwheel.yml +++ b/.github/workflows/ciwheel.yml @@ -18,12 +18,11 @@ jobs: steps: - name: Get Arbor - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: - fetch-depth: 0 submodules: recursive - name: Create unique VERSION - if: endsWith(github.ref,'ciwheel') + if: startsWith(github.ref, 'refs/tags/v') == false run: python3 -c 'import time;f=open("VERSION","r+");content = f.readlines();f.seek(0);f.write(content[0].strip()+time.strftime("%Y%m%d%H%I%S"))' - uses: actions/upload-artifact@v3 with: @@ -40,9 +39,8 @@ jobs: steps: - name: Get Arbor - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: - fetch-depth: 0 submodules: recursive - name: Delete VERSION run: rm -f VERSION @@ -70,9 +68,8 @@ jobs: - name: Get packages run: python3 -m pip install build - name: Get Arbor - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: - fetch-depth: 0 submodules: recursive - name: Delete VERSION run: rm -f VERSION -- GitLab