Skip to content

Commit

Permalink
Fix metadata for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Feb 14, 2020
1 parent 35246b6 commit 2051899
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/metadata.sh
@@ -0,0 +1,3 @@
#!/bin/bash

echo "::set-output name=version::$(poetry version --no-ansi | cut -d' ' -f2)"
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Expand Up @@ -61,10 +61,8 @@ jobs:
with:
version: 1.0.3
- name: Collect Metadata
# TODO: release build if $GITHUB_REF == $V else add ${GITHUB_REF:0:8}
id: meta
run: |
echo "##[set-output name=version;]$(poetry version --no-ansi | cut -d' ' -f2)"
run: .github/scripts/metadata.sh
- name: Install Python Dependencies
run: poetry install
- name: Test with Pytest
Expand Down Expand Up @@ -126,6 +124,9 @@ jobs:
run: |
$env:PATH = "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem"
C:\tools\msys64\usr\bin\bash -lc "win-installer/msys2-install.sh"
- name: Collect Metadata
id: meta
run: C:\tools\msys64\usr\bin\bash -lc ".github/scripts/metadata.sh"
- name: Run Tests
run: |
$env:PATH = "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem"
Expand Down Expand Up @@ -171,8 +172,7 @@ jobs:
version: 1.0.3
- name: Collect Metadata
id: meta
run: |
echo "##[set-output name=version;]$(poetry version --no-ansi | cut -d' ' -f2)"
run: .github/scripts/metadata.sh
- name: Use Python Dependency Cache
uses: actions/cache@v1.0.3
with:
Expand Down

0 comments on commit 2051899

Please sign in to comment.