Skip to content

Commit

Permalink
Merge pull request #255 from devsecopsmaturitymodel/wurstbrot-patch-1
Browse files Browse the repository at this point in the history
chore: Add versioning
  • Loading branch information
wurstbrot authored Nov 7, 2023
2 parents 623c021 + ce2cf6e commit 1a43809
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,26 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: Checkout
uses: actions/checkout@v3
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
branch: 'master'
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get Semantic Release Version
id: get-version
run: echo "::set-output name=version::$(sed -n '1p' CHANGELOG.md | awk '{print $NF}')"

- name: show version
run: |
echo "Semantic Release Version: ${{ steps.get-version.outputs.version }}"
- name: setup qemu for multi-arch build
uses: docker/setup-qemu-action@v2
with:
Expand Down

0 comments on commit 1a43809

Please sign in to comment.