ci/cd - update VERSION file for testing release

This commit is contained in:
florian 2023-08-15 20:32:03 +02:00
parent a5e50d0f74
commit c03b1bb20b
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
3 changed files with 9 additions and 3 deletions

View File

@ -50,6 +50,9 @@ jobs:
# Prepare
- name: Checkout source code
uses: actions/checkout@v3
- name: Replace VERSION
if: inputs.RELEASE == 'testing'
run: echo -n testing > VERSION
- name: Setup SSH for ARM node
if: inputs.CACHE_SUFFIX == 'arm'
run: |

View File

@ -42,6 +42,9 @@ jobs:
# Prepare
- name: Checkout source code
uses: actions/checkout@v3
- name: Replace VERSION
if: inputs.RELEASE == 'testing'
run: echo -n testing > VERSION
- name: Extract arch
run : |
echo "ARCH=${{ env.PLATFORMS }}" | sed 's/linux//g' | sed 's@/@@g' >> "$GITHUB_ENV"

View File

@ -65,9 +65,9 @@ jobs:
env:
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
# Update name
- name: Rename package
if: inputs.BW_VERSION == 'testing'
run: sudo apt install -y rename && rename 's/[0-9]\.[0-9]\.[0-9]/testing/' /tmp/${{ inputs.LINUX }}/*.${{ inputs.PACKAGE }}
# - name: Rename package
# if: inputs.BW_VERSION == 'testing'
# run: sudo apt install -y rename && rename 's/[0-9]\.[0-9]\.[0-9]/testing/' /tmp/${{ inputs.LINUX }}/*.${{ inputs.PACKAGE }}
# Push package
- name: Push package to packagecloud
uses: danielmundi/upload-packagecloud@v1