Skip to content

TEST for tags on release_v1 #1481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: release_v1
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/branch-based-tagging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Print version tag
on:
merge_group:
pull_request:
branches:
- release_v1
paths-ignore:
- ".gitignore"
- "**/*.md"
- "charts/**"
- "Makefile"
- "sda-admin/**"
- "tools/*"
# types: [ closed ]

jobs:
tag_release:
name: tag version
outputs:
part: ${{ steps.bump_tag.outputs.part }}
tag: ${{ steps.bump_tag.outputs.tag }}
new_tag: ${{ steps.bump_tag.outputs.new_tag }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: bump_tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
TAG_CONTEXT: branch
DRY_RUN: true

- name: print
run: |
echo "part: ${{ steps.bump_tag.outputs.part }}"
echo "tag: ${{ steps.bump_tag.outputs.tag }}"
echo "new_tag: ${{ steps.bump_tag.outputs.new_tag }}"
Loading