Skip to content

Commit

Permalink
get version
Browse files Browse the repository at this point in the history
  • Loading branch information
bertramn committed Oct 22, 2023
1 parent 8c37094 commit 10a9e01
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,20 @@ jobs:

inspect:
runs-on: ubuntu-latest
needs: [build, scan]
needs: [ build, scan ]
steps:
- run: jq '.' $GITHUB_EVENT_PATH

release:
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [build, scan]
needs: [ build, scan ]
steps:
- uses: actions/checkout@v4
- id: revision
run: cat .bumpversion.cfg | grep current_version | awk '{ print version=$3 }' >> $GITHUB_ENV
run: |
VERSION=$(cat .bumpversion.cfg | grep current_version | awk '{ print version="$3" }')
echo "${VERSION}" >> "$GITHUB_OUTPUT"
# cat .bumpversion.cfg | grep current_version | awk '{ print version=$3 }' >> $GITHUB_ENV

- run: echo "some publish with version {{ steps.revision.version }}"

0 comments on commit 10a9e01

Please sign in to comment.