Skip to content

Commit

Permalink
Allow releases and rolling tag updates on v tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Confusingboat committed Mar 18, 2024
1 parent 55fccb7 commit 6b6bafc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
- tag
- build_and_test
- build_and_test_cosmos
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && fromJSON(needs.tag.outputs.prerelease-depth) < 2 }}
if: ${{ github.ref_type == 'tag' || github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && fromJSON(needs.tag.outputs.prerelease-depth) < 2 }}
uses: ./.github/workflows/release.yml
with:
version: ${{ needs.tag.outputs.version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ jobs:
# Update unstable tag on main branch
- name: Tag unstable
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref_type == 'tag' || github.ref == 'refs/heads/main' }}
uses: EndBug/[email protected]
with:
ref: unstable

# Update latest tag on main branch when tagged RTM
- name: Tag latest
if: ${{ github.ref == 'refs/heads/main' && steps.version.outputs.prerelease == '' }}
if: ${{ github.ref_type == 'tag' || github.ref == 'refs/heads/main' && steps.version.outputs.prerelease == '' }}
uses: EndBug/[email protected]

# - name: Tag version
Expand Down

0 comments on commit 6b6bafc

Please sign in to comment.