Skip to content

Commit

Permalink
Merge pull request #222 from n0th1ng-else/version
Browse files Browse the repository at this point in the history
  • Loading branch information
n0th1ng-else authored Feb 18, 2023
2 parents aeb247a + 0ceb536 commit 0e09a0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
name: Push new version
outputs:
version: ${{ steps.getversion.outputs.version }}
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -34,10 +34,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Read VERSION file
env:
COLOR_GREEN: "\x1b[32m"
TEXT_BOLD: "\x1b[1m"
id: version
run: |
APP_VER=$(cat .VERSION)
echo "version=$APP_VER" >> $GITHUB_OUTPUT
echo "${{ env.TEXT_BOLD }}Version: ${{ env.COLOR_GREEN }}$APP_VER"
docker:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Read VERSION file
env:
COLOR_GREEN: "\x1b[32m"
TEXT_BOLD: "\x1b[1m"
id: version
run: |
APP_VER=$(cat .VERSION)
echo "version=$APP_VER" >> $GITHUB_OUTPUT
echo "Version: $APP_VER"
echo "${{ env.TEXT_BOLD }}Version: ${{ env.COLOR_GREEN }}$APP_VER"
validate:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0e09a0b

Please sign in to comment.