Skip to content

Commit

Permalink
Merge pull request #145 from tesla-ce/add_tests
Browse files Browse the repository at this point in the history
github actions with version update
  • Loading branch information
rogergithub3 authored Aug 29, 2023
2 parents 78c7a3d + 5a82270 commit 056dfb0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,25 @@ on:
- created
jobs:
check:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
outputs:
version: ${{ steps.vars.outputs.version }}
tag: ${{ steps.vars.outputs.tag }}
steps:
- uses: actions/checkout@v3
- name: Get version values
id: vars
run: |
echo ::set-output name=version::$(cat src/tesla_ce/lib/data/VERSION)
echo ::set-output name=tag::${GITHUB_REF#refs/*/}
run: |
echo "version=$(cat src/tesla_ce/lib/data/VERSION)" >> $GITHUB_OUTPUT
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Show captured versions
run: |
echo 'Version in source code: ${{ steps.vars.outputs.version }}'
echo 'Release version: ${{ steps.vars.outputs.tag }}'
- name: Show captured versions
run: |
echo 'Version in source code: ${{ steps.vars.outputs.version }}'
echo 'Release version: ${{ steps.vars.outputs.tag }}'
echo 'Release version: ${{ steps.vars.outputs.tag }}'
- name: Check version tag
uses: nick-invision/[email protected]
with:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ on:

jobs:
check:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
outputs:
version: ${{ steps.vars.outputs.version }}
tag: ${{ steps.vars.outputs.tag }}
steps:
- uses: actions/checkout@v3
- name: Get version values
id: vars
run: |
echo ::set-output name=version::$(cat src/tesla_ce/lib/data/VERSION)
echo ::set-output name=tag::${GITHUB_REF#refs/*/}
run: |
echo "version=$(cat src/tesla_ce/lib/data/VERSION)" >> $GITHUB_OUTPUT
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Show captured versions
run: |
echo 'Version in source code: ${{ steps.vars.outputs.version }}'
Expand Down

0 comments on commit 056dfb0

Please sign in to comment.