update workflows to use env vars instead of patching VERSIONS file

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2021-09-12 16:50:37 +01:00
parent ca69e29514
commit 1cc3159518
No known key found for this signature in database
GPG Key ID: 872950F3ECF2B173
2 changed files with 6 additions and 16 deletions

View File

@ -14,17 +14,16 @@ jobs:
env:
ARCH: ${{matrix.ARCH}}
DEBIAN_VERSION: ${{matrix.DEBIAN_VERSION}}
CORE_VERSION: development
WEB_VERSION: devel
FTL_VERSION: development
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
ref: dev
- name: Patching Versions File
run: |
git checkout -b nightly
echo "CORE_VERSION=development" > VERSIONS
echo "WEB_VERSION=devel" >> VERSIONS
echo "FTL_VERSION=development" >> VERSIONS
- name: Run Tests
run: |
echo "Building ${ARCH}-${DEBIAN_VERSION}"
@ -50,12 +49,8 @@ jobs:
uses: actions/checkout@v2
with:
ref: dev
- name: Patching Versions File
run: |
git checkout -b nightly
echo "CORE_VERSION=development" > VERSIONS
echo "WEB_VERSION=devel" >> VERSIONS
echo "FTL_VERSION=development" >> VERSIONS
- name: Download workspace files
uses: actions/download-artifact@v1
with:

View File

@ -30,17 +30,16 @@ jobs:
env:
ARCH: ${{matrix.ARCH}}
DEBIAN_VERSION: ${{matrix.DEBIAN_VERSION}}
CORE_VERSION: ${{ github.event.inputs.core }}
WEB_VERSION: ${{ github.event.inputs.web }}
FTL_VERSION: ${{ github.event.inputs.ftl }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }}
- name: Patching Versions File
run: |
git checkout -b ${{ github.event.inputs.name }}
echo "CORE_VERSION=${{ github.event.inputs.core }}" > VERSIONS
echo "WEB_VERSION=${{ github.event.inputs.web }}" >> VERSIONS
echo "FTL_VERSION=${{ github.event.inputs.ftl }}" >> VERSIONS
- name: Run Tests
run: |
echo "Building ${ARCH}-${DEBIAN_VERSION}"
@ -66,12 +65,8 @@ jobs:
uses: actions/checkout@v2
with:
ref: dev
- name: Patching Versions File
run: |
git checkout -b ${{ github.event.inputs.name }}
echo "CORE_VERSION=${{ github.event.inputs.core }}" > VERSIONS
echo "WEB_VERSION=${{ github.event.inputs.web }}" >> VERSIONS
echo "FTL_VERSION=${{ github.event.inputs.ftl }}" >> VERSIONS
- name: Download workspace files
uses: actions/download-artifact@v1
with: