Skip to content

Commit 056dfb0

Browse files
authored
Merge pull request #145 from tesla-ce/add_tests
github actions with version update
2 parents 78c7a3d + 5a82270 commit 056dfb0

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.github/workflows/python-package.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,25 @@ on:
99
- created
1010
jobs:
1111
check:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-latest
13+
outputs:
14+
version: ${{ steps.vars.outputs.version }}
15+
tag: ${{ steps.vars.outputs.tag }}
1316
steps:
1417
- uses: actions/checkout@v3
1518
- name: Get version values
1619
id: vars
17-
run: |
18-
echo ::set-output name=version::$(cat src/tesla_ce/lib/data/VERSION)
19-
echo ::set-output name=tag::${GITHUB_REF#refs/*/}
20+
run: |
21+
echo "version=$(cat src/tesla_ce/lib/data/VERSION)" >> $GITHUB_OUTPUT
22+
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
23+
- name: Show captured versions
24+
run: |
25+
echo 'Version in source code: ${{ steps.vars.outputs.version }}'
26+
echo 'Release version: ${{ steps.vars.outputs.tag }}'
2027
- name: Show captured versions
2128
run: |
2229
echo 'Version in source code: ${{ steps.vars.outputs.version }}'
23-
echo 'Release version: ${{ steps.vars.outputs.tag }}'
30+
echo 'Release version: ${{ steps.vars.outputs.tag }}'
2431
- name: Check version tag
2532
uses: nick-invision/assert-action@v1.1.0
2633
with:

.github/workflows/python-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ on:
1111

1212
jobs:
1313
check:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-latest
15+
outputs:
16+
version: ${{ steps.vars.outputs.version }}
17+
tag: ${{ steps.vars.outputs.tag }}
1518
steps:
1619
- uses: actions/checkout@v3
1720
- name: Get version values
1821
id: vars
19-
run: |
20-
echo ::set-output name=version::$(cat src/tesla_ce/lib/data/VERSION)
21-
echo ::set-output name=tag::${GITHUB_REF#refs/*/}
22+
run: |
23+
echo "version=$(cat src/tesla_ce/lib/data/VERSION)" >> $GITHUB_OUTPUT
24+
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
2225
- name: Show captured versions
2326
run: |
2427
echo 'Version in source code: ${{ steps.vars.outputs.version }}'

0 commit comments

Comments
 (0)