-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from tesla-ce/add_tests
github actions with version update
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters