Skip to content

Commit

Permalink
Track major
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymclean committed Nov 16, 2024
1 parent f88cd2e commit 34406bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.gitversion.outputs.semVer }}
major: ${{ steps.gitversion.outputs.major }}
steps:
- name: Check out code
uses: actions/checkout@v4
Expand Down Expand Up @@ -105,7 +106,7 @@ jobs:
uses: emilymclean/[email protected]
env:
ACTION_REPO: ${{ github.repository }}
ACTION_VERSION: ${{ needs.version.outputs.version }}
ACTION_VERSION: ${{ needs.version.outputs.major }}
with:
template-file: templates/README.template.md
output-file: README.md
Expand Down Expand Up @@ -139,6 +140,10 @@ jobs:
tag_name: v${{ needs.version.outputs.version }}
name: Release ${{ needs.version.outputs.version }}
prerelease: ${{ github.ref == 'refs/heads/develop' }}
- uses: jimeh/update-tags-action@v1
if: github.ref == 'refs/heads/main'
with:
tags: v${{ needs.version.outputs.major }}
release-other:
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit 34406bb

Please sign in to comment.