Skip to content

another try

another try #5

Workflow file for this run

---
on:
workflow_dispatch:
push:
branches:
- main
- develop
- releases/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "some build"
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: echo "scan something"
release:
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [ build, scan ]
steps:
- uses: actions/checkout@v4
- run: jq '.' $GITHUB_EVENT_PATH
- id: revision
run: |
VERSION=$(cat .bumpversion.cfg | grep current_version | awk '{ print $3 }')
echo "version=${VERSION}"
# echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
# cat .bumpversion.cfg | grep current_version | awk '{ print version=$3 }' >> $GITHUB_ENV
- run: echo "some publish with version {{ steps.revision.version }}"