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:
parent
ca69e29514
commit
1cc3159518
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue